daemon: fix use of NULL pointers in logs
This commit is contained in:
parent
15d08a2e92
commit
dd086a0b72
|
@ -182,7 +182,7 @@ bool ladish_command_change_app_state(void * call_ptr, struct ladish_cqueue * que
|
|||
opath_dup = strdup(opath);
|
||||
if (opath_dup == NULL)
|
||||
{
|
||||
lash_dbus_error(call_ptr, LASH_DBUS_ERROR_GENERIC, "strdup('%s') failed.", opath_dup);
|
||||
lash_dbus_error(call_ptr, LASH_DBUS_ERROR_GENERIC, "strdup('%s') failed.", opath);
|
||||
goto fail;
|
||||
}
|
||||
|
||||
|
|
|
@ -176,21 +176,21 @@ ladish_command_new_app(
|
|||
opath_dup = strdup(opath);
|
||||
if (opath_dup == NULL)
|
||||
{
|
||||
lash_dbus_error(call_ptr, LASH_DBUS_ERROR_GENERIC, "strdup('%s') failed.", opath_dup);
|
||||
lash_dbus_error(call_ptr, LASH_DBUS_ERROR_GENERIC, "strdup('%s') failed.", opath);
|
||||
goto fail;
|
||||
}
|
||||
|
||||
commandline_dup = strdup(commandline);
|
||||
if (commandline_dup == NULL)
|
||||
{
|
||||
lash_dbus_error(call_ptr, LASH_DBUS_ERROR_GENERIC, "strdup('%s') failed.", commandline_dup);
|
||||
lash_dbus_error(call_ptr, LASH_DBUS_ERROR_GENERIC, "strdup('%s') failed.", commandline);
|
||||
goto fail_free_opath;
|
||||
}
|
||||
|
||||
name_dup = strdup(name);
|
||||
if (name_dup == NULL)
|
||||
{
|
||||
lash_dbus_error(call_ptr, LASH_DBUS_ERROR_GENERIC, "strdup('%s') failed.", name_dup);
|
||||
lash_dbus_error(call_ptr, LASH_DBUS_ERROR_GENERIC, "strdup('%s') failed.", name);
|
||||
goto fail_free_commandline;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue