X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/4339c8d6f92b521d39cac428c45b4059e9c2998c..3b20aec50f6ec53d9e532d6718924f01305e8004:/package/busybox/patches/920-awx.patch diff --git a/package/busybox/patches/920-awx.patch b/package/busybox/patches/920-awx.patch index 1dd584e0d..251db6812 100644 --- a/package/busybox/patches/920-awx.patch +++ b/package/busybox/patches/920-awx.patch @@ -98,7 +98,7 @@ diff -purN bb.old/editors/awk.c bb.dev/editors/awk.c diff -purN bb.old/editors/awx.c bb.dev/editors/awx.c --- bb.old/editors/awx.c 1970-01-01 01:00:00.000000000 +0100 +++ bb.dev/editors/awx.c 2007-03-14 02:03:50.566202928 +0100 -@@ -0,0 +1,588 @@ +@@ -0,0 +1,589 @@ +/* + * awk web extension + * @@ -323,6 +323,7 @@ diff -purN bb.old/editors/awx.c bb.dev/editors/awx.c + func *f; + var *v, tv; + ++ memset(&tmp, 0, sizeof(tmp)); + pos = p; + t.lineno = 1; + while ((tclass = next_token(TC_EOF | TC_OPSEQ | @@ -354,7 +355,7 @@ diff -purN bb.old/editors/awx.c bb.dev/editors/awx.c + clear_array(ahash); + } + } -+ if (initseq) ++ if (initseq && initseq->first) + evaluate(initseq->first, &tv); +} +