[Tizen_6_build] gdbus: Avoid printing null strings 17/221117/1 accepted/tizen/unified/20200105.221144 submit/tizen/20191230.015956
authorErnestas Kulik <ekulik@redhat.com>
Tue, 29 Jan 2019 08:50:46 +0000 (09:50 +0100)
committerHyunjee Kim <hj0426.kim@samsung.com>
Fri, 27 Dec 2019 07:16:27 +0000 (16:16 +0900)
commitddebf1dd6712924fee2431e832682b328ff5c563
treeb679641fba65e706092762c3a904738750d96f5c
parent19afad48ae2c6ecc6089b9e67c00a5bebb4c398b
[Tizen_6_build] gdbus: Avoid printing null strings

This mostly affects the 2.56 branch, but, given that GCC 9 is being
stricter about passing null string pointers to printf-like functions, it
might make sense to proactively fix such calls.

gdbusauth.c: In function '_g_dbus_auth_run_server':
gdbusauth.c:1302:11: error: '%s' directive argument is null
[-Werror=format-overflow=]
 1302 |           debug_print ("SERVER: WaitingForBegin, read '%s'",
 line);
       |

gdbusmessage.c: In function ‘g_dbus_message_to_blob’:
gdbusmessage.c:2730:30: error: ‘%s’ directive argument is null [-Werror=format-overflow=]
 2730 |       tupled_signature_str = g_strdup_printf ("(%s)", signature_str);
      |

Change-Id: I8ce45f2a4759df60b8ed071cfcec4aa455563941
Signed-off-by: Hyunjee Kim <hj0426.kim@samsung.com>
gio/gdbusauth.c
gio/gdbusmessage.c