summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: c75ed18)
raw | patch | inline | side by side (parent: c75ed18)
author | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Sun, 26 Aug 2007 17:07:10 +0000 (19:07 +0200) | ||
committer | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Sun, 26 Aug 2007 17:07:10 +0000 (19:07 +0200) |
src/processes.c | patch | blob | history |
diff --git a/src/processes.c b/src/processes.c
index ccf1571f8ea6211e32defc2418a43212dff7826d..4b59351cba7df9933859e5ffd46801117a42377c 100644 (file)
--- a/src/processes.c
+++ b/src/processes.c
closedir (dh);
+ if (list_len == 0)
+ return (NULL);
+
assert (list_len < list_size);
assert (list[list_len] == 0);
return (list);
-}
+} /* int *ps_read_tasks */
int ps_read_process (int pid, procstat_t *ps, char *state)
{