summaryrefslogtreecommitdiffstats
path: root/src/prtstat.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/prtstat.c')
-rw-r--r--src/prtstat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/prtstat.c b/src/prtstat.c
index 0a6ace4..fee5f61 100644
--- a/src/prtstat.c
+++ b/src/prtstat.c
@@ -214,7 +214,7 @@ static void print_stat(const int pid, const opt_type options)
char *bptr;
FILE *fp;
- struct proc_info *pr;
+ struct proc_info *pr = NULL;
if ( (asprintf(&pathname, "/proc/%d/stat",(int)pid)) < 0) {
perror(_("asprintf in print_stat failed.\n"));