diff options
author | Khem Raj <raj.khem@gmail.com> | 2018-12-18 23:10:44 -0800 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2018-12-18 23:30:10 -0800 |
commit | 2b18af89b4b46bdf1dc8701ba96c48a76d706336 (patch) | |
tree | 6a2d1f73ec247845b76a5637b9ed5e629bcb80ef | |
parent | ef942ca56442ecac3a22803cc87b18ce9b8cd97c (diff) |
Do not pass null string to %s printf formatted string
Here the string is already decided to be NULL and passing
a null pointer to %s will not work
Fixes
error: '%s' directive argument is null
Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r-- | plugins/mtk/mm-broadband-modem-mtk.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mtk/mm-broadband-modem-mtk.c b/plugins/mtk/mm-broadband-modem-mtk.c index 0f8aaf79..dbdd66ac 100644 --- a/plugins/mtk/mm-broadband-modem-mtk.c +++ b/plugins/mtk/mm-broadband-modem-mtk.c @@ -190,7 +190,7 @@ get_supported_modes_ready (MMBaseModem *self, response = mm_base_modem_at_command_finish (MM_BASE_MODEM (self), res, &error); if (!response) { - mm_dbg ("Fail to get response %s", response); + mm_dbg ("Fail to get response"); g_task_return_error (task, error); g_object_unref (task); return; |