Skip to content

Commit

Permalink
nulstr-util: make ret_size in strv_make_nulstr() optional
Browse files Browse the repository at this point in the history
(cherry picked from commit 16cda99c737714d6d259e45808e39f94408d90bd)

Related: #2190228
  • Loading branch information
yuwata authored and dtardon committed Jul 18, 2023
1 parent e7c06a1 commit 0813100
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/basic/strv.c
Original file line number Diff line number Diff line change
Expand Up @@ -669,7 +669,6 @@ int strv_make_nulstr(char **l, char **p, size_t *q) {
char **i;

assert(p);
assert(q);

STRV_FOREACH(i, l) {
size_t z;
Expand All @@ -694,7 +693,8 @@ int strv_make_nulstr(char **l, char **p, size_t *q) {

assert(n > 0);
*p = m;
*q = n - 1;
if (q)
*q = n - 1;

m = NULL;

Expand Down

0 comments on commit 0813100

Please sign in to comment.