From 1b5042636fa92c977d9a033f685ceb7f3c4c5fc9 Mon Sep 17 00:00:00 2001 From: Sami Kerola Date: Sun, 28 May 2017 10:21:48 +0100 Subject: misc: fix reassigned values before old ones has been used [cppcheck] Signed-off-by: Sami Kerola --- libmount/src/context_umount.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libmount/src/context_umount.c') diff --git a/libmount/src/context_umount.c b/libmount/src/context_umount.c index e0b7bda11..37fdf2668 100644 --- a/libmount/src/context_umount.c +++ b/libmount/src/context_umount.c @@ -485,7 +485,7 @@ static int evaluate_permissions(struct libmnt_context *cxt) */ if (u_flags & (MNT_MS_USER | MNT_MS_OWNER | MNT_MS_GROUP)) { - char *curr_user = NULL; + char *curr_user; char *mtab_user = NULL; size_t sz; -- cgit v1.2.3-55-g7522