summaryrefslogtreecommitdiffabout
authorSergey Poznyakoff <gray@gnu.org.ua>2010-06-28 22:35:48 (GMT)
committer Sergey Poznyakoff <gray@gnu.org.ua>2010-06-28 22:35:48 (GMT)
commitd78bfa616320cba4943c9cf0f28f3bb4ed335fa0 (patch) (side-by-side diff)
treeeac1e900f4349bc76030771e82c5dc8a9beb71b4
parent2af5a2255dfcf46c06cb39010768863c5a2837aa (diff)
downloadsmap-d78bfa616320cba4943c9cf0f28f3bb4ed335fa0.tar.gz
smap-d78bfa616320cba4943c9cf0f28f3bb4ed335fa0.tar.bz2
Bugfix.
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--src/cfg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cfg.c b/src/cfg.c
index e0eea62..4af6829 100644
--- a/src/cfg.c
+++ b/src/cfg.c
@@ -244,7 +244,7 @@ asgn(struct wordsplit *ws, size_t *psize)
size * sizeof(ws->ws_env[0]));
}
ws->ws_env[n] = ws->ws_wordv[0];
- ws->ws_env[n++] = NULL;
+ ws->ws_env[++n] = NULL;
}
ws->ws_wordv[0] = NULL;
*psize = size;

Return to:

Send suggestions and report system problems to the System administrator.