Fix uninitialized ret value
[lttng-tools.git] / 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.022491 seconds and 4 git commands to generate.