Commits

Vinay Sajip committed 7f30f8c

Fix argument validation bug reported by Sam Partington.

Comments (0)

Files changed (1)

CLILauncher/launcher.c

         /* No file with shebang, or an unrecognised shebang.
          * Is the first arg a special version qualifier?
          */
-        valid = validate_version(&p[1]);
+        valid = (*p == '-') && validate_version(&p[1]);
         if (valid) {
             ip = locate_python(&p[1]);
             if (ip == NULL)