Corrected logical errors in tests for error conditions.
[pspp] / src / language / lexer / q2c.c
index 20bdd564969adf24c05caf83d82e5104cf1f3f9c..27ff530d318eb9c364ba7db5d59fb8e99c13cc4a 100644 (file)
@@ -1729,7 +1729,7 @@ dump_parser (int persistent)
   dump (0, "static int");
   dump (0, "parse_%s (struct lexer *lexer, struct dataset *ds%s, struct cmd_%s *p, void *aux UNUSED)",
         make_identifier (cmdname),
-       (def && ( def->type == SBC_VARLIST && def->type == SBC_CUSTOM))?"":" UNUSED",
+       (def && ( def->type == SBC_VARLIST || def->type == SBC_CUSTOM))?"":" UNUSED",
        make_identifier (cmdname));
   dump (1, "{");