]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
cgls: look at the right variable in error path (#5234)
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 6 Feb 2017 12:34:01 +0000 (07:34 -0500)
committerLennart Poettering <lennart@poettering.net>
Mon, 6 Feb 2017 12:34:01 +0000 (13:34 +0100)
CID #1370779.

src/cgls/cgls.c

index ea79b9185e999b6bf5a5d7d8ada11a1b3a8b317b..5574c145553edc3f005837b88db971e13d3ef885 100644 (file)
@@ -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;
                                 }