summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Mack <github@zonque.org>2015-10-07 11:16:08 +0200
committerDaniel Mack <github@zonque.org>2015-10-07 11:16:08 +0200
commita99bbbdc0bad8690526be1a73de4171cf7a0c448 (patch)
tree6051bc5b61fe0368130dccca7a2a213dba76e4e5
parent69b8a8ebaeaae13e82d44b386555921877bc0309 (diff)
parent6fff8ac4a949ebbdde088a3f9d7a1e4a19767d3d (diff)
Merge pull request #1482 from reverendhomer/patch-1
strv: fix infinite loop in strv_extend_n()
-rw-r--r--src/basic/strv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/basic/strv.c b/src/basic/strv.c
index d5169467da..9fe3b5dfff 100644
--- a/src/basic/strv.c
+++ b/src/basic/strv.c
@@ -780,7 +780,7 @@ int strv_extend_n(char ***l, const char *value, size_t n) {
return 0;
rollback:
- for (j = k; j < i; i++)
+ for (j = k; j < i; j++)
free(nl[j]);
nl[k] = NULL;