Commit 50e4c55a authored by Guillem Jover's avatar Guillem Jover

Try to check if setproctitle() constructor got passed arguments

parent 6faea4d2
......@@ -135,6 +135,10 @@ spt_init(int argc, char *argv[], char *envp[])
char *base, *end, *nul, *tmp;
int i, error;
/* Try to make sure we got called with main() arguments. */
if (argc < 0)
base = argv[0];
if (base == NULL)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment