1f092caba7
Add comments and revert logic changes in 01_fallback_counting Remove quotes when reading ID value from /etc/os-release Related: rhbz#1650706 blscfg: expand grub_users before passing to grub_normal_add_menu_entry() Resolves: rhbz#1650706 Drop buggy downstream patch "efinet: retransmit if our device is busy" Resolves: rhbz#1649048 Make the menu entry users option argument to be optional Related: rhbz#1652434 10_linux_bls: add missing menu entries options Resolves: rhbz#1652434 Drop "Be more aggro about actually using the *configured* network device." Resolves: rhbz#1654388 Fix menu entry selection based on title Resolves: rhbz#1654936 Signed-off-by: Javier Martinez Canillas <javierm@redhat.com>
28 lines
909 B
Diff
28 lines
909 B
Diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
From: Peter Jones <pjones@redhat.com>
|
|
Date: Thu, 25 May 2017 11:27:40 -0400
|
|
Subject: [PATCH] Fix one more coverity complaint
|
|
|
|
No idea why covscan thinks this is an "added" bug, since the file hasn't
|
|
changed in 3 years, but... yeah.
|
|
|
|
Signed-off-by: Peter Jones <pjones@redhat.com>
|
|
---
|
|
grub-core/normal/completion.c | 3 ++-
|
|
1 file changed, 2 insertions(+), 1 deletion(-)
|
|
|
|
diff --git a/grub-core/normal/completion.c b/grub-core/normal/completion.c
|
|
index 2c9b9e9312a..93aa0d8eda8 100644
|
|
--- a/grub-core/normal/completion.c
|
|
+++ b/grub-core/normal/completion.c
|
|
@@ -284,7 +284,8 @@ complete_file (void)
|
|
|
|
/* Cut away the filename part. */
|
|
dirfile = grub_strrchr (dir, '/');
|
|
- dirfile[1] = '\0';
|
|
+ if (dirfile)
|
|
+ dirfile[1] = '\0';
|
|
|
|
/* Iterate the directory. */
|
|
(fs->dir) (dev, dir, iterate_dir, NULL);
|