proc: clean up
This commit is contained in:
parent
51d3977a9d
commit
988105e4eb
|
@ -187,11 +187,10 @@ _cmd_args(Proc_Info *p, int pid, char *name, size_t len)
|
|||
snprintf(name, len, "%s", ecore_file_file_get(line));
|
||||
p->arguments = strdup(line);
|
||||
}
|
||||
fclose(f);
|
||||
fclose(f);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
char *end = strchr(name, ' ');
|
||||
if (end) *end = '\0';
|
||||
|
||||
|
|
Loading…
Reference in New Issue