mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-03 15:10:14 +01:00
wifi: don't log NULL string in create_device()
While glibc's printf is forgiving against printing NULL values, don't do it.
This commit is contained in:
parent
bde3f1bd62
commit
fc2e4bb48f
1 changed files with 5 additions and 1 deletions
|
|
@ -110,7 +110,11 @@ create_device (NMDeviceFactory *factory,
|
|||
NULL);
|
||||
nm_strstrip (backend);
|
||||
|
||||
nm_log_dbg (LOGD_PLATFORM | LOGD_WIFI, "(%s) config: backend is %s, %i", iface, backend, WITH_IWD);
|
||||
nm_log_dbg (LOGD_PLATFORM | LOGD_WIFI,
|
||||
"(%s) config: backend is %s%s%s%s",
|
||||
iface,
|
||||
NM_PRINT_FMT_QUOTE_STRING (backend),
|
||||
WITH_IWD ? " (iwd support enabled)" : "");
|
||||
if (!backend || !strcasecmp (backend, "wpa_supplicant"))
|
||||
return nm_device_wifi_new (iface, capabilities);
|
||||
#if WITH_IWD
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue