strv: make iterator in STRV_FOREACH() declaread in the loop
This also avoids multiple evaluations in STRV_FOREACH_BACKWARDS()
This commit is contained in:
@@ -117,7 +117,6 @@ int serialize_dual_timestamp(FILE *f, const char *name, const dual_timestamp *t)
|
||||
|
||||
int serialize_strv(FILE *f, const char *key, char **l) {
|
||||
int ret = 0, r;
|
||||
char **i;
|
||||
|
||||
/* Returns the first error, or positive if anything was serialized, 0 otherwise. */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user