]> git.ipfire.org Git - thirdparty/collectd.git/commitdiff
processes plugin: Remove unnecessarily verbose assertion.
authorFlorian Forster <octo@collectd.org>
Sat, 24 Feb 2024 21:32:10 +0000 (22:32 +0100)
committerFlorian Forster <octo@collectd.org>
Sat, 24 Feb 2024 22:21:29 +0000 (23:21 +0100)
src/processes.c

index 84d8988c40234d008d7439720b68837d3d3c86d3..acd202b6657e55ef12eda3014ba3357343d15cad 100644 (file)
@@ -580,7 +580,6 @@ static int ps_get_cmdline(long pid, char const *name, char *buf,
     snprintf(buf, buf_len, "[%s]", name);
     return 0;
   }
-  assert(status > 0);
   /* n is the number of bytes in the buffer, including the final null byte. */
   size_t n = (size_t)status;