diff options
-rw-r--r-- | lib/vsprintf.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/vsprintf.c b/lib/vsprintf.c index 4432b69a78be..56fe96319292 100644 --- a/lib/vsprintf.c +++ b/lib/vsprintf.c @@ -2682,7 +2682,8 @@ qualifier: p = lookup_state + *fmt.str; } if (p->state) { - spec->base = p->base; + if (p->base) + spec->base = p->base; spec->flags |= p->flags_or_double_size; fmt.state = p->state; fmt.str++; |