From: Jan Kiszka <[email protected]>

Both variables are reassigned prior to the first read access.

Signed-off-by: Jan Kiszka <[email protected]>
---

Comes before "Random style fixes" to avoid that cppcheck becomes unhappy
over the mtab assignment.

 env/env_disk_utils.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/env/env_disk_utils.c b/env/env_disk_utils.c
index 0a1ff09..6b89e8d 100644
--- a/env/env_disk_utils.c
+++ b/env/env_disk_utils.c
@@ -20,8 +20,8 @@ const char *tmp_mnt_dir = "/tmp/mnt-XXXXXX";
 
 char *get_mountpoint(char *devpath)
 {
-       struct mntent *part = NULL;
-       FILE *mtab = NULL;
+       struct mntent *part;
+       FILE *mtab;
 
        if ((mtab = setmntent("/proc/mounts", "r")) == NULL)
                return NULL;
-- 
2.12.3

-- 
You received this message because you are subscribed to the Google Groups "EFI 
Boot Guard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/efibootguard-dev/ba26349d-8b21-e12b-7967-dd92499eb00e%40siemens.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to