]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
* grub-core/commands/wildcard.c (wildcard_expand): Set default return
authorVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Fri, 8 Jun 2012 17:29:43 +0000 (19:29 +0200)
committerVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Fri, 8 Jun 2012 17:29:43 +0000 (19:29 +0200)
value rather than let it uninited.

ChangeLog
grub-core/commands/wildcard.c

index 31194e497d0c90ba043ddc4cd1aa7c7416d60041..720b81b49da709dcf544980038510c2a3ac9366b 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2012-06-08  Vladimir Serbinenko  <phcoder@gmail.com>
+
+       * grub-core/commands/wildcard.c (wildcard_expand): Set default return
+       value rather than let it uninited.
+
 2012-06-07  Vladimir Serbinenko  <phcoder@gmail.com>
 
        * grub-core/commands/wildcard.c (+check_file): New function.
index 2680ccdb6b480344cea0a7c56be354bc6d986432..c98eed4da61a4e07d7a10e8f285820d5d2a93995 100644 (file)
@@ -475,6 +475,7 @@ wildcard_expand (const char *s, char ***strs)
   unsigned i;
   regex_t regexp;
 
+  *strs = 0;
   if (s[0] != '/' && s[0] != '(' && s[0] != '*')
     return 0;