]> andersk Git - moira.git/commitdiff
fix bug introduced in the _help bug workaround, which makes "qy" with
authordanw <danw>
Mon, 2 Aug 1999 18:43:44 +0000 (18:43 +0000)
committerdanw <danw>
Mon, 2 Aug 1999 18:43:44 +0000 (18:43 +0000)
no arguments dump core on some platforms. Reported by zacheiss in
[1280] in moira.

clients/mrtest/mrtest.c

index ef4673d21670eebc994358ef81c33d83bc2a4930..c151457a11af43f13931545f6c8d36b0b8bd296f 100644 (file)
@@ -427,7 +427,7 @@ int print_reply(int argc, char **argv, void *help)
 
 void test_query(int argc, char **argv)
 {
-  int status, help = !strcmp(argv[1], "_help");
+  int status, help;
   sigset_t sigs;
 
   if (argc < 2)
@@ -435,6 +435,7 @@ void test_query(int argc, char **argv)
       com_err("moira (query)", 0, "Usage: query handle [ args ... ]");
       return;
     }
+  help = !strcmp(argv[1], "_help");
 
   count = 0;
   /* Don't allow ^C during the query: it will confuse libmoira's
This page took 1.282959 seconds and 5 git commands to generate.