mirror of git://git.sysmocom.de/ofono
gdbus: do not call memset for terminating NUL
This commit is contained in:
parent
a77fcca3c6
commit
37805e0197
|
@ -72,7 +72,6 @@ static void print_arguments(GString *gstr, const char *sig,
|
|||
|
||||
complete = FALSE;
|
||||
struct_level = dict_level = 0;
|
||||
memset(type, 0, sizeof(type));
|
||||
|
||||
/* Gather enough data to have a single complete type */
|
||||
for (len = 0; len < (sizeof(type) - 1) && sig[i]; len++, i++) {
|
||||
|
@ -107,6 +106,8 @@ static void print_arguments(GString *gstr, const char *sig,
|
|||
break;
|
||||
}
|
||||
|
||||
type[len + 1] = '\0';
|
||||
|
||||
if (!complete) {
|
||||
error("Unexpected signature: %s", sig);
|
||||
return;
|
||||
|
|
Loading…
Reference in New Issue