Welcome to little lamb

Code » anopa » commit 35721be

test: minor fix

author Olivier Brunel
2015-03-20 15:16:28 UTC
committer Olivier Brunel
2015-04-04 12:47:36 UTC
parent 432ef35a11619dadace1a8166e75aa5a6a706ca6

test: minor fix

src/utils/aa-test.c +2 -2

diff --git a/src/utils/aa-test.c b/src/utils/aa-test.c
index e7b820d..a321122 100644
--- a/src/utils/aa-test.c
+++ b/src/utils/aa-test.c
@@ -53,7 +53,7 @@ main (int argc, char * const argv[])
     struct stat st;
     uid_t euid;
     int mode;
-    char test;
+    char test = 0;
 
     for (;;)
     {
@@ -105,7 +105,7 @@ main (int argc, char * const argv[])
     argc -= optind;
     argv += optind;
 
-    if (argc != 1)
+    if (argc != 1 || test == 0)
         dieusage (1);
 
     if (lstat (argv[0], &st) < 0)