commit | 0a36de0580ac0b686c5f72910bd3f0f0853e54d9 | [log] [tgz] |
---|---|---|
author | Eric Andersen <andersen@codepoet.org> | Tue May 08 04:25:46 2001 +0000 |
committer | Eric Andersen <andersen@codepoet.org> | Tue May 08 04:25:46 2001 +0000 |
tree | 5ad12e82b21d06ef2f473b69fea582baf18e7523 | |
parent | 45e92ba2ced91eba4cc432d3addaafdd2a326689 [diff] [blame] |
Fix a stupid segfault caused by dereferencing a NULL ptr. -Erik
diff --git a/hush.c b/hush.c index a5f634b..1cb5f39 100644 --- a/hush.c +++ b/hush.c
@@ -1162,6 +1162,8 @@ remove_bg_job(pi); } } else { + if(pi==NULL) + break; /* child stopped */ pi->stopped_progs++; pi->progs[prognum].is_stopped = 1;