commit e10c916e6a794631e8c4a0a73aeb1b3615863e70 from: Hiltjo Posthuma date: Sun Sep 15 11:53:41 2019 UTC change "calloc" to "strdup" for strdup() NULL return value commit - d6fca0ba38c4b10064f9b966ab286a63acaf9ce9 commit + e10c916e6a794631e8c4a0a73aeb1b3615863e70 blob - 28f1f7ac697f0b747f027a269c923c88ab617104 blob + 4176e44478d59bb228fc0b7373935cf136d2b289 --- tog/tog.c +++ tog/tog.c @@ -4688,11 +4688,11 @@ make_argv(const char *arg0, const char *arg1) err(1, "calloc"); argv[0] = strdup(arg0); if (argv[0] == NULL) - err(1, "calloc"); + err(1, "strdup"); if (arg1) { argv[1] = strdup(arg1); if (argv[1] == NULL) - err(1, "calloc"); + err(1, "strdup"); } return argv;