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>
/* 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)