diff options
author | Karel Zak | 2009-03-03 15:34:10 +0100 |
---|---|---|
committer | Karel Zak | 2009-03-03 15:34:10 +0100 |
commit | 457470060f31cc2cc7c6c03015909927af86507c (patch) | |
tree | bf6661b5373aeb85f7cd951a0c581498c0034466 /mount | |
parent | simmpleinit: fix gcc warning (buffer size in read()) (diff) | |
download | kernel-qcow2-util-linux-457470060f31cc2cc7c6c03015909927af86507c.tar.gz kernel-qcow2-util-linux-457470060f31cc2cc7c6c03015909927af86507c.tar.xz kernel-qcow2-util-linux-457470060f31cc2cc7c6c03015909927af86507c.zip |
mount: fix gcc warning (variable used uninitialized)
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 <kzak@redhat.com>
Diffstat (limited to 'mount')
-rw-r--r-- | mount/fstab.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mount/fstab.c b/mount/fstab.c index 57954598b..c238fa2db 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) |