aboutsummaryrefslogtreecommitdiffstats
path: root/io.c
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2011-05-04 23:05:28 +0300
committerArnold D. Robbins <arnold@skeeve.com>2011-05-04 23:05:28 +0300
commite7dced088c226280bcb1edb252011d6c186504e4 (patch)
tree868eabc52db1e4a08e1385868e1a56062e74ea40 /io.c
parent19093d5a231421594788d633e811859276d8f92f (diff)
downloadegawk-e7dced088c226280bcb1edb252011d6c186504e4.tar.gz
egawk-e7dced088c226280bcb1edb252011d6c186504e4.tar.bz2
egawk-e7dced088c226280bcb1edb252011d6c186504e4.zip
Fix problem with subarray of deleted array.
Diffstat (limited to 'io.c')
-rw-r--r--io.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/io.c b/io.c
index 6fc921c5..401b4def 100644
--- a/io.c
+++ b/io.c
@@ -1504,7 +1504,7 @@ devopen(const char *name, const char *mode)
*/
if ((ms2 = getenv("GAWK_MSEC_SLEEP")) != NULL) {
msleep = strtol(ms2, &end, 10);
- if (end != cp && msleep < 0)
+ if (end == ms2 || msleep < 0)
msleep = 1000;
else
msleep *= 1000;