]> andersk Git - moira.git/commitdiff
Move that if statement someplace it's useful.
authorzacheiss <zacheiss>
Mon, 17 Feb 2003 00:50:25 +0000 (00:50 +0000)
committerzacheiss <zacheiss>
Mon, 17 Feb 2003 00:50:25 +0000 (00:50 +0000)
server/qvalidate.pc

index 144bdd83698ebb6a72d04ae990430dc45eb16acd..5877935ff13a97b09358eb47c5b6bc207fbb2f2f 100644 (file)
@@ -154,14 +154,15 @@ int validate_chars(char *argv[], struct valobj *vo)
   char *tname, *cname;
   EXEC SQL END DECLARE SECTION;
 
+  if (!*s)
+    return MR_RESERVED;
+
   /* check for bad characters */
   while (*s)
     {
       if (illegalchars[(int)*s++])
        return MR_BAD_CHAR;
     }
-  if (!*s)
-    return MR_RESERVED;
 
   /* check for length */
   tname = table_name[vo->table];
This page took 0.590987 seconds and 5 git commands to generate.