dbus1-generator: Fixed the problem of passing NULL argument to strcmp
authorINSUN PYO <insun.pyo@samsung.com>
Tue, 15 Jan 2019 05:19:43 +0000 (14:19 +0900)
committerŁukasz Stelmach <l.stelmach@samsung.com>
Wed, 10 Jan 2024 22:18:36 +0000 (23:18 +0100)
commit92d301f7a0aa48fe669c6b72ed5942ac038db5db
treed43704e16dbb9e9bbb653bf935602dadf67407f2
parent0b2223905de2e4c9fc3fd251e04cb936c6ad8d54
dbus1-generator: Fixed the problem of passing NULL argument to strcmp

If /usr/share/dbus-1/[system-]services does not have "Exec=" field, "exec" variable is NULL.
Passing NULL to strcmp, "Segmentation fault" occurs.

Change-Id: I04fa32d97452ab97dfd4cf4ec70a670fe96a2c09
src/dbus1-generator/dbus1-generator.c