* grub-core/commands/wildcard.c (wildcard_expand): Set default return
value rather than let it uninited.
This commit is contained in:
parent
f4d5820f28
commit
9068fdcf0b
2 changed files with 6 additions and 0 deletions
|
@ -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>
|
2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
|
||||||
|
|
||||||
* grub-core/commands/wildcard.c (+check_file): New function.
|
* grub-core/commands/wildcard.c (+check_file): New function.
|
||||||
|
|
|
@ -475,6 +475,7 @@ wildcard_expand (const char *s, char ***strs)
|
||||||
unsigned i;
|
unsigned i;
|
||||||
regex_t regexp;
|
regex_t regexp;
|
||||||
|
|
||||||
|
*strs = 0;
|
||||||
if (s[0] != '/' && s[0] != '(' && s[0] != '*')
|
if (s[0] != '/' && s[0] != '(' && s[0] != '*')
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue