aboutsummaryrefslogtreecommitdiffstats
path: root/node.c
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2011-06-08 22:15:43 +0300
committerArnold D. Robbins <arnold@skeeve.com>2011-06-08 22:15:43 +0300
commit8c713154f0ccaa4e303d8a7893974bed27ec4529 (patch)
tree5ec582db58188957be8155d680fda1c820c7442e /node.c
parenta24ac6a4fea139604941cb97092554043445776d (diff)
downloadegawk-8c713154f0ccaa4e303d8a7893974bed27ec4529.tar.gz
egawk-8c713154f0ccaa4e303d8a7893974bed27ec4529.tar.bz2
egawk-8c713154f0ccaa4e303d8a7893974bed27ec4529.zip
Sync dfa with GNU grep.
Diffstat (limited to 'node.c')
-rw-r--r--node.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/node.c b/node.c
index f8291aec..315d46c7 100644
--- a/node.c
+++ b/node.c
@@ -349,6 +349,7 @@ NODE *
r_make_str_node(const char *s, unsigned long len, int flags)
{
NODE *r;
+
getnode(r);
r->type = Node_val;
r->numbr = 0;
@@ -365,7 +366,7 @@ r_make_str_node(const char *s, unsigned long len, int flags)
memcpy(r->stptr, s, len);
}
r->stptr[len] = '\0';
-
+
if ((flags & SCAN) != 0) { /* scan for escape sequences */
const char *pf;
char *ptm;