From: Simon Marchi Date: Wed, 4 Dec 2019 22:58:36 +0000 (-0500) Subject: Strip trailing spaces X-Git-Url: http://git.efficios.com/?p=argpar.git;a=commitdiff_plain;h=f46b510674785c70781a3de06c02888faded5db9 Strip trailing spaces --- 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;