aboutsummaryrefslogtreecommitdiffstats
path: root/profile.c
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2016-03-03 20:55:06 +0200
committerArnold D. Robbins <arnold@skeeve.com>2016-03-03 20:55:06 +0200
commitb60cdd6dc30f9f4845f43b7ca17a490233ec3918 (patch)
tree44b7571ad5103baae460d1fa09c573c6c29274af /profile.c
parent21b584ce481970c9022c08148a6adbc0e489c432 (diff)
downloadegawk-b60cdd6dc30f9f4845f43b7ca17a490233ec3918.tar.gz
egawk-b60cdd6dc30f9f4845f43b7ca17a490233ec3918.tar.bz2
egawk-b60cdd6dc30f9f4845f43b7ca17a490233ec3918.zip
Fix a compile warning in profile.c.
Diffstat (limited to 'profile.c')
-rw-r--r--profile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/profile.c b/profile.c
index 178deb7e..842b04fb 100644
--- a/profile.c
+++ b/profile.c
@@ -1423,10 +1423,10 @@ pp_list(int nargs, const char *paren, const char *delim)
erealloc(pp_args, NODE **, (nargs + 2) * sizeof(NODE *), "pp_list");
}
+ delimlen = strlen(delim);
if (nargs == 0)
len = 2;
else {
- delimlen = strlen(delim);
len = -delimlen;
for (i = 1; i <= nargs; i++) {
r = pp_args[i] = pp_pop();