# | Line 370 | Line 370 | process_stat_t *get_process_stats() { | |
---|---|---|
370 | ||
371 | ps_size = get_proc_snapshot(&ps); | |
372 | ||
373 | + | if(ps_size == NULL) { |
374 | + | return NULL; |
375 | + | } |
376 | + | |
377 | for(x = 0; x < ps_size; x++) { | |
378 | switch (ps->state) { | |
379 | /* currently no mapping for UNKNOWN in process_stat_t */ |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |