diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2023-02-02 08:31:24 +0100 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2023-02-02 08:31:24 +0100 |
commit | ac20d9497e3195842958f172801493ce82dfd63b (patch) | |
tree | f9c08a7026c1402d202912b2b2d39b0b61f428d2 /utils | |
parent | 21cd3b718a2311671ef283759b6d3723fa9db232 (diff) | |
download | hurd-ac20d9497e3195842958f172801493ce82dfd63b.tar.gz hurd-ac20d9497e3195842958f172801493ce82dfd63b.tar.bz2 hurd-ac20d9497e3195842958f172801493ce82dfd63b.zip |
Avoid variable length array with size zero
Diffstat (limited to 'utils')
-rw-r--r-- | utils/rpctrace.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/rpctrace.c b/utils/rpctrace.c index f47d179a..c2bc0062 100644 --- a/utils/rpctrace.c +++ b/utils/rpctrace.c @@ -857,7 +857,7 @@ print_contents (mach_msg_header_t *inp, /* These are port rights. Translate them into wrappers. */ mach_port_t *const portnames = data; mach_msg_type_number_t i; - mach_msg_type_name_t newtypes[nelt]; + mach_msg_type_name_t newtypes[nelt ? : 1]; int poly; assert_backtrace (inp->msgh_bits & MACH_MSGH_BITS_COMPLEX); |