From 457470060f31cc2cc7c6c03015909927af86507c Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Tue, 3 Mar 2009 15:34:10 +0100 Subject: [PATCH] mount: fix gcc warning (variable used uninitialized) MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit fstab.c: In function ‘getfs_by_spec’: fstab.c:400 warning: ‘name’ may be used uninitialized in this function fstab.c:402 warning: ‘value’ may be used uninitialized in this function Signed-off-by: Karel Zak --- mount/fstab.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mount/fstab.c b/mount/fstab.c index 57954598b7..c238fa2dbc 100644 --- a/mount/fstab.c +++ b/mount/fstab.c @@ -388,7 +388,7 @@ getfs_by_dir (const char *dir) { /* Find the device SPEC in fstab. */ struct mntentchn * getfs_by_spec (const char *spec) { - char *name, *value, *cspec; + char *name = NULL, *value = NULL, *cspec; struct mntentchn *mc = NULL; if (!spec) -- 2.39.5