]> andersk Git - moira.git/blobdiff - server/qvalidate.pc
fix the test in the [ANY] printserver case to actually work
[moira.git] / server / qvalidate.pc
index cd076f98a989e6f65de5fbde527b8508a7b44c93..205646ec332224942d887143b686542fec57a1f7 100644 (file)
@@ -464,11 +464,12 @@ int validate_num(char *argv[], struct valobj *vo)
       strcpy(p, "-1");
       return MR_EXISTS;
     }
-  if (!*p)
-    return MR_INTEGER;
 
   if (*p == '-')
     p++;
+  if (!*p)
+    return MR_INTEGER;
+
   for (; *p; p++)
     {
       if (*p < '0' || *p > '9')
This page took 0.590661 seconds and 4 git commands to generate.