X-Git-Url: http://git.efficios.com/?p=argpar.git;a=blobdiff_plain;f=argpar%2Fargpar.c;h=c31b181e11f33475fe3fc0a4a6ec4760f34f56a5;hp=6a9e256e02854f32e9df08574f6f0600e8132e0e;hb=44e278df0df76731e2f337cb6be3322557aaeead;hpb=7ac57709d4964e2c59c9b0592632c374056caa00 diff --git a/argpar/argpar.c b/argpar/argpar.c index 6a9e256..c31b181 100644 --- a/argpar/argpar.c +++ b/argpar/argpar.c @@ -69,7 +69,7 @@ char *argpar_asprintf(const char *fmt, ...) { va_list args; char *str; - + va_start(args, fmt); str = argpar_vasprintf(fmt, args); va_end(args); @@ -101,7 +101,7 @@ bool argpar_string_append_printf(char **str, const char *fmt, ...) success = false; goto end; } - + free(*str); *str = new_str; @@ -145,7 +145,7 @@ bool push_item(struct bt_argpar_item_array * const array, unsigned int new_n_alloc = array->n_alloc * 2; struct bt_argpar_item **new_items; - new_items = argpar_realloc(array->items, + new_items = argpar_realloc(array->items, struct bt_argpar_item *, new_n_alloc); if (!new_items) { success = false;