Merge pull request #25470 from keszybz/strv-extendf-format

Improve check for strv_extendf() format string
This commit is contained in:
Yu Watanabe
2022-11-22 12:27:37 +09:00
committed by GitHub
2 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -45,7 +45,7 @@ static inline int strv_extend(char ***l, const char *value) {
return strv_extend_with_size(l, NULL, value);
}
int strv_extendf(char ***l, const char *format, ...) _printf_(2,0);
int strv_extendf(char ***l, const char *format, ...) _printf_(2,3);
int strv_extend_front(char ***l, const char *value);
int strv_push_with_size(char ***l, size_t *n, char *value);