diff --git a/pgrep.c b/pgrep.c index c7535f77..94a2cbe1 100644 --- a/pgrep.c +++ b/pgrep.c @@ -499,7 +499,7 @@ static struct el * select_procs (int *num) stderr); exit (EXIT_FATAL); } - + memset(&task, 0, sizeof (task)); while(readproc(ptp, &task)) { int match = 1; diff --git a/skill.c b/skill.c index ab83a030..01b29cb0 100644 --- a/skill.c +++ b/skill.c @@ -640,14 +640,14 @@ static void skillsnice_parse(int argc, case NS_OPTION: ns_pid = atoi(optarg); if (ns_pid == 0) { - xwarnx(_("invalid pid number %i"), optarg); + xwarnx(_("invalid pid number %s"), optarg); kill_usage(stderr); } if (ns_read(ns_pid, &ns_task)) { xwarnx(_("error reading reference namespace " "information")); kill_usage(stderr); - } + } break; case NSLIST_OPTION: