diff options
author | reverendhomer <mk.43.ecko@gmail.com> | 2015-10-07 11:52:10 +0300 |
---|---|---|
committer | reverendhomer <mk.43.ecko@gmail.com> | 2015-10-07 11:52:10 +0300 |
commit | 6fff8ac4a949ebbdde088a3f9d7a1e4a19767d3d (patch) | |
tree | 6051bc5b61fe0368130dccca7a2a213dba76e4e5 /src | |
parent | 69b8a8ebaeaae13e82d44b386555921877bc0309 (diff) |
strv: fix infinite loop in strv_extend_n()
Fixes Coverity #1325768
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; |