diff options
author | andersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2001-05-08 04:25:46 +0000 |
---|---|---|
committer | andersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2001-05-08 04:25:46 +0000 |
commit | e403c038d44ee6d171f73df680cfbd4bb3c35841 (patch) | |
tree | 5ad12e82b21d06ef2f473b69fea582baf18e7523 /shell | |
parent | d7dc8a75bf01115f1657982c6b6d6753eef492a4 (diff) | |
download | busybox-w32-e403c038d44ee6d171f73df680cfbd4bb3c35841.tar.gz busybox-w32-e403c038d44ee6d171f73df680cfbd4bb3c35841.tar.bz2 busybox-w32-e403c038d44ee6d171f73df680cfbd4bb3c35841.zip |
Fix a stupid segfault caused by dereferencing a NULL ptr.
-Erik
git-svn-id: svn://busybox.net/trunk/busybox@2572 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'shell')
-rw-r--r-- | shell/hush.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/shell/hush.c b/shell/hush.c index a5f634b9a..1cb5f39ab 100644 --- a/shell/hush.c +++ b/shell/hush.c | |||
@@ -1162,6 +1162,8 @@ static void checkjobs() | |||
1162 | remove_bg_job(pi); | 1162 | remove_bg_job(pi); |
1163 | } | 1163 | } |
1164 | } else { | 1164 | } else { |
1165 | if(pi==NULL) | ||
1166 | break; | ||
1165 | /* child stopped */ | 1167 | /* child stopped */ |
1166 | pi->stopped_progs++; | 1168 | pi->stopped_progs++; |
1167 | pi->progs[prognum].is_stopped = 1; | 1169 | pi->progs[prognum].is_stopped = 1; |