summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
9c0ce9b)
Signed-off-by: David Goulet <dgoulet@efficios.com>
/* Caller must free() *cmdline */
cmdline = malloc(PATH_MAX);
/* Caller must free() *cmdline */
cmdline = malloc(PATH_MAX);
+ if (!cmdline) {
+ perror("malloc cmdline");
+ goto end;
+ }
ret = fread(cmdline, 1, PATH_MAX, fp);
if (ret < 0) {
perror("fread proc list");
ret = fread(cmdline, 1, PATH_MAX, fp);
if (ret < 0) {
perror("fread proc list");