diff --git a/grub-core/commands/wildcard.c b/grub-core/commands/wildcard.c index bba99dcc8..cbe32e0ff 100644 --- a/grub-core/commands/wildcard.c +++ b/grub-core/commands/wildcard.c @@ -72,6 +72,7 @@ merge (char **dest, char **ps) return 0; } + dest = p; for (j = 0; ps[j]; j++) dest[i++] = ps[j]; dest[i] = 0;