From: Zbigniew Jędrzejewski-Szmek Date: Mon, 6 Feb 2017 12:34:01 +0000 (-0500) Subject: cgls: look at the right variable in error path (#5234) X-Git-Tag: v233~162 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=65c8834942a5ca2d2016f28c4dfc6738a717ed69;p=thirdparty%2Fsystemd.git cgls: look at the right variable in error path (#5234) CID #1370779. --- diff --git a/src/cgls/cgls.c b/src/cgls/cgls.c index ea79b9185e9..5574c145553 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; }