aboutsummaryrefslogtreecommitdiff
path: root/printf.c
diff options
context:
space:
mode:
authorPetr Machata <pmachata@redhat.com>2012-10-30 00:19:36 +0100
committerPetr Machata <pmachata@redhat.com>2012-10-30 00:19:36 +0100
commit168044811945744658d45bb05075c13b60cd7fa0 (patch)
treed26fcc82ff8af3bb891516b76dd028f498e49f29 /printf.c
parent2b955a5cefeab9cd409f7973837bf1d25003d8e9 (diff)
downloadltrace-168044811945744658d45bb05075c13b60cd7fa0.tar.gz
Fix initialization of primitive types in printf.c
Diffstat (limited to 'printf.c')
-rw-r--r--printf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/printf.c b/printf.c
index 84d4a16..859e685 100644
--- a/printf.c
+++ b/printf.c
@@ -135,7 +135,7 @@ form_next_param(struct param_enum *self,
return -1;
}
- len->type.type = ARGTYPE_LONG;
+ len->type = *type_get_simple(ARGTYPE_LONG);
long l;
if (self->future_length != NULL) {
@@ -326,7 +326,7 @@ param_printf_next(struct param_enum *self, struct arg_type_info *infop,
return 0;
}
- infop->type = ARGTYPE_VOID;
+ *infop = *type_get_simple(ARGTYPE_VOID);
return 0;
}