]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
libmount: remove dead code [coverity scan]
authorKarel Zak <kzak@redhat.com>
Tue, 1 Oct 2013 15:23:26 +0000 (17:23 +0200)
committerKarel Zak <kzak@redhat.com>
Tue, 1 Oct 2013 15:23:26 +0000 (17:23 +0200)
Signed-off-by: Karel Zak <kzak@redhat.com>
libmount/src/utils.c

index 7930e29debdaf45874c68d80e0da31a12d45baf0..0d5a22716634acfaa0bdf180a4738c7408134618 100644 (file)
@@ -38,7 +38,7 @@ int append_string(char **a, const char *b)
        }
 
        al = strlen(*a);
-       bl = b ? strlen(b) : 0;
+       bl = strlen(b);
 
        tmp = realloc(*a, al + bl + 1);
        if (!tmp)