summaryrefslogtreecommitdiff
path: root/src/cgls
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2017-02-06 07:34:01 -0500
committerLennart Poettering <lennart@poettering.net>2017-02-06 13:34:01 +0100
commit65c8834942a5ca2d2016f28c4dfc6738a717ed69 (patch)
treeb6252caf21a23548f308abb1563d8a7fc233a410 /src/cgls
parent52e634271fe96ec23a22705ffb87df59a09d1618 (diff)
cgls: look at the right variable in error path (#5234)
CID #1370779.
Diffstat (limited to 'src/cgls')
-rw-r--r--src/cgls/cgls.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/cgls/cgls.c b/src/cgls/cgls.c
index ea79b9185e..5574c14555 100644
--- a/src/cgls/cgls.c
+++ b/src/cgls/cgls.c
@@ -241,9 +241,9 @@ int main(int argc, char *argv[]) {
goto finish;
}
- r = cg_split_spec(*name, &c, &p);
- if (r < 0) {
- log_error_errno(r, "Failed to split argument %s: %m", *name);
+ q = cg_split_spec(*name, &c, &p);
+ if (q < 0) {
+ log_error_errno(q, "Failed to split argument %s: %m", *name);
goto failed;
}