diff options
author | Peter Xu <peterx@redhat.com> | 2016-03-22 10:37:26 +0800 |
---|---|---|
committer | Michael Tokarev <mjt@tls.msk.ru> | 2016-05-18 15:04:26 +0300 |
commit | de4905f4bc645ad2991b9b535e8902f81abaf8c7 (patch) | |
tree | a2eed6048beac6592301a05463534023c43547a9 /COPYING.LIB | |
parent | 1d817db3a07774999606f62aa2d8772a82363551 (diff) |
qdict: fix unbounded stack warning for qdict_array_entries
Here we use one g_strdup_printf() to replace the two stack allocated
array, considering it's more convenient, safe, and as long as it's
called rarely only when quorum device opens. This will remove the
unbound stack warning when compiling with "-Wstack-usage=1000000".
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Peter Xu <peterx@redhat.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
Diffstat (limited to 'COPYING.LIB')
0 files changed, 0 insertions, 0 deletions