+2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
+
+ * grub-core/kern/misc.c (grub_vsnprintf_real): Remove needless explicit
+ \0 checking.
+
2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
* grub-core/lib/legacy_parse.c: Add support for "nd" disk.
if (c != '%')
continue;
- if (*fmt && *fmt =='-')
+ if (*fmt =='-')
fmt++;
- while (*fmt && grub_isdigit (*fmt))
+ while (grub_isdigit (*fmt))
fmt++;
- if (*fmt && *fmt == '$')
+ if (*fmt == '$')
fmt++;
- if (*fmt && *fmt =='-')
+ if (*fmt =='-')
fmt++;
- while (*fmt && grub_isdigit (*fmt))
+ while (grub_isdigit (*fmt))
fmt++;
- if (*fmt && *fmt =='.')
+ if (*fmt =='.')
fmt++;
- while (*fmt && grub_isdigit (*fmt))
+ while (grub_isdigit (*fmt))
fmt++;
c = *fmt++;
if (c == 'l')
- {
- c = *fmt++;
- if (c == 'l')
- c = *fmt++;
- }
+ c = *fmt++;
+ if (c == 'l')
+ c = *fmt++;
+
switch (c)
{
case 'p':