# | Line 29 | Line 29 | int main(){ | |
---|---|---|
29 | proc_state_t *ps; | |
30 | int ps_size; | |
31 | int x; | |
32 | < | char *state; |
32 | > | char *state = NULL; |
33 | ||
34 | /* Initialise statgrab */ | |
35 | statgrab_init(); | |
# | Line 42 | Line 42 | int main(){ | |
42 | ||
43 | ps_size = get_proc_snapshot(&ps); | |
44 | ||
45 | < | if(ps_size == NULL){ |
45 | > | if(ps_size == 0){ |
46 | fprintf(stderr, "Failed to get process snapshot\n"); | |
47 | exit(1); | |
48 | } |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |