]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
libmount: fix compiler warning [-Wsometimes-uninitialized]
authorKarel Zak <kzak@redhat.com>
Mon, 15 Apr 2019 11:35:21 +0000 (13:35 +0200)
committerKarel Zak <kzak@redhat.com>
Mon, 15 Apr 2019 11:35:21 +0000 (13:35 +0200)
Signed-off-by: Karel Zak <kzak@redhat.com>
libmount/src/tab_parse.c

index 9b8bfc5933c628c24b234011b19e0ea09da03839..15113032569f0cd53deebffda83aaf889f1eb149 100644 (file)
@@ -373,7 +373,7 @@ enomem:
 static int mnt_parse_swaps_line(struct libmnt_fs *fs, const char *s)
 {
        uint64_t num;
-       int rc;
+       int rc = 0;
        char *p;
 
        /* (1) source */