Make the expression code a little nicer and fix bugs found
[pspp-builds.git] / src / var-labs.c
index ee9f4b786d763f6a5b65f2664a7099b7b0b680c9..a098e62a88515182162476c51b96e8e467e13f99 100644 (file)
@@ -41,10 +41,10 @@ cmd_variable_labels (void)
 
   int i;
 
-  lex_match ('/');
   do
     {
-      parse_variables (default_dict, &v, &nv, PV_NONE);
+      if (!parse_variables (default_dict, &v, &nv, PV_NONE))
+        return CMD_PART_SUCCESS_MAYBE;
 
       if (token != T_STRING)
        {