2008-07-01 Pavel Roskin <proski@gnu.org>

* term/tparm.c (analyze): Always set *popcount.
This commit is contained in:
proski 2008-07-02 00:54:18 +00:00
parent 10b159d1b2
commit 6a42d99dd5
2 changed files with 4 additions and 1 deletions

View File

@ -1,5 +1,7 @@
2008-07-01 Pavel Roskin <proski@gnu.org>
* term/tparm.c (analyze): Always set *popcount.
* loader/i386/pc/linux.c (grub_rescue_cmd_linux): Remove useless
cast to fix a warning.

View File

@ -361,6 +361,8 @@ analyze(const char *string, char *p_is_s[NUM_PARM], int *popcount)
const char *cp = string;
static char dummy[] = "";
*popcount = 0;
if (cp == 0)
return 0;
@ -371,7 +373,6 @@ analyze(const char *string, char *p_is_s[NUM_PARM], int *popcount)
}
grub_memset(p_is_s, 0, sizeof(p_is_s[0]) * NUM_PARM);
*popcount = 0;
while ((cp - string) < (int) len2) {
if (*cp == '%') {