Tokenize directly in team_info.args buffer.

This commit is contained in:
Philippe Houdoin 2013-04-18 00:17:26 +02:00
parent cc2c83fa5c
commit 1e77e4f852

View File

@ -262,13 +262,6 @@ int kill_by_name(int signum, const char *name)
*token = 0;
}
args = strdup(args);
if (args == NULL) {
error (0, errno, "%s", name);
status = EXIT_FAILURE;
continue;
}
/* skip the path if any */
token = basename(args);
@ -279,7 +272,6 @@ int kill_by_name(int signum, const char *name)
status = EXIT_FAILURE;
}
}
free(args);
}
return status;
}