Simon Poole reports that awk segfaults when environment variables
authorEric Andersen <andersen@codepoet.org>
Fri, 30 Jul 2004 23:52:08 +0000 (23:52 -0000)
committerEric Andersen <andersen@codepoet.org>
Fri, 30 Jul 2004 23:52:08 +0000 (23:52 -0000)
commit67776bef59096ff09cea39cb7c6e382b7c4f4a60
tree0bd2be3d7957fba80b8aa9c82d0cb716cee90bad
parentcbcdbc41ffab413767569891b58526b4d1066627
Simon Poole reports that awk segfaults when environment variables
with no value exist, i.e.

$ export BOB=''
% ./busybox awk
Segmentation fault

This patch teaches awk to not blow chunks on empty env variables.
 -Erik
editors/awk.c