diff options
author | Daniel Mack <github@zonque.org> | 2015-10-07 11:16:08 +0200 |
---|---|---|
committer | Daniel Mack <github@zonque.org> | 2015-10-07 11:16:08 +0200 |
commit | a99bbbdc0bad8690526be1a73de4171cf7a0c448 (patch) | |
tree | 6051bc5b61fe0368130dccca7a2a213dba76e4e5 /src | |
parent | 69b8a8ebaeaae13e82d44b386555921877bc0309 (diff) | |
parent | 6fff8ac4a949ebbdde088a3f9d7a1e4a19767d3d (diff) |
Merge pull request #1482 from reverendhomer/patch-1
strv: fix infinite loop in strv_extend_n()
Diffstat (limited to 'src')
-rw-r--r-- | src/basic/strv.c | 2 |
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; |