From: David Goulet Date: Tue, 7 Feb 2012 22:02:44 +0000 (-0500) Subject: Fix uninitialized ret value X-Git-Tag: v2.0-pre20~6 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=6e9261f48bf897fe9de28a64f9d6ccbd31682e2f;p=lttng-tools.git Fix uninitialized ret value Signed-off-by: David Goulet --- diff --git a/src/bin/lttng/commands/view.c b/src/bin/lttng/commands/view.c index c74241860..575109b86 100644 --- a/src/bin/lttng/commands/view.c +++ b/src/bin/lttng/commands/view.c @@ -288,9 +288,11 @@ static int view_trace(void) if (getuid() != 0) { if (getuid() != geteuid()) { ERR("UID does not match effective UID."); + ret = CMD_ERROR; goto error; } else if (getgid() != getegid()) { ERR("GID does not match effective GID."); + ret = CMD_ERROR; goto error; } }