diff --git a/meminfo.c b/meminfo.c index cfd4728..1f5ac86 100644 --- a/meminfo.c +++ b/meminfo.c @@ -269,9 +269,6 @@ int get_cmdline(int pid, char* out, size_t outlen) return -fread_errno; } fclose(f); - if (n < 1) { - return -ENODATA; - } /* replace null character with space */ for (size_t i = 0; i < n; i++) { if (out[i] == '\0') {