projects
/
argpar.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
2c64149
)
Strip trailing spaces
author
Simon Marchi
<simon.marchi@efficios.com>
Wed, 4 Dec 2019 22:58:36 +0000
(17:58 -0500)
committer
Simon Marchi
<simon.marchi@efficios.com>
Wed, 4 Dec 2019 22:58:36 +0000
(17:58 -0500)
argpar/argpar.c
patch
|
blob
|
blame
|
history
diff --git
a/argpar/argpar.c
b/argpar/argpar.c
index 6a9e256e02854f32e9df08574f6f0600e8132e0e..c31b181e11f33475fe3fc0a4a6ec4760f34f56a5 100644
(file)
--- a/
argpar/argpar.c
+++ b/
argpar/argpar.c
@@
-69,7
+69,7
@@
char *argpar_asprintf(const char *fmt, ...)
{
va_list args;
char *str;
{
va_list args;
char *str;
-
+
va_start(args, fmt);
str = argpar_vasprintf(fmt, args);
va_end(args);
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;
}
success = false;
goto end;
}
-
+
free(*str);
*str = new_str;
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;
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;
struct bt_argpar_item *, new_n_alloc);
if (!new_items) {
success = false;
This page took
0.023525 seconds
and
4
git commands to generate.