Fix uninitialized ret value
authorDavid Goulet <dgoulet@efficios.com>
Tue, 7 Feb 2012 22:02:44 +0000 (17:02 -0500)
committerDavid Goulet <dgoulet@efficios.com>
Tue, 7 Feb 2012 22:02:44 +0000 (17:02 -0500)
Signed-off-by: David Goulet <dgoulet@efficios.com>
src/bin/lttng/commands/view.c

index c7424186041491f536efd0d61b9b44238dbdcc63..575109b86befce60e0a263f8aa90900b5c39debf 100644 (file)
@@ -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;
                }
        }
This page took 0.026261 seconds and 4 git commands to generate.