diff options
-rw-r--r-- | Python/pythonmain.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Python/pythonmain.c b/Python/pythonmain.c index a41a559..4cf44dc 100644 --- a/Python/pythonmain.c +++ b/Python/pythonmain.c @@ -71,7 +71,8 @@ realmain(argc, argv) that look like options are left for the the command to interpret. */ command = malloc(strlen(optarg) + 2); - /* Ignore malloc errors this early... */ + if (command == NULL) + fatal("not enough memory to copy -c argument"); strcpy(command, optarg); strcat(command, "\n"); break; |