Interworking: Check NULL string to avoid compiler warning
Fix warning by gcc 9.2.1. interworking.c: In function ‘interworking_home_sp_cred’: interworking.c:2263:3: warning: ‘%s’ directive argument is null [-Wformat-overflow=] 2263 | wpa_msg(wpa_s, MSG_DEBUG, | ^~~~~~~~~~~~~~~~~~~~~~~~~ 2264 | "Interworking: Search for match with SIM/USIM domain %s", | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2265 | realm); | ~~~~~~ Signed-off-by: Masashi Honma <masashi.honma@gmail.com>
This commit is contained in:
parent
ec1c0d1548
commit
6807eee9ca
1 changed files with 1 additions and 1 deletions
|
@ -2262,7 +2262,7 @@ int interworking_home_sp_cred(struct wpa_supplicant *wpa_s,
|
||||||
realm++;
|
realm++;
|
||||||
wpa_msg(wpa_s, MSG_DEBUG,
|
wpa_msg(wpa_s, MSG_DEBUG,
|
||||||
"Interworking: Search for match with SIM/USIM domain %s",
|
"Interworking: Search for match with SIM/USIM domain %s",
|
||||||
realm);
|
realm ? realm : "[NULL]");
|
||||||
if (realm &&
|
if (realm &&
|
||||||
domain_name_list_contains(domain_names, realm, 1))
|
domain_name_list_contains(domain_names, realm, 1))
|
||||||
return 1;
|
return 1;
|
||||||
|
|
Loading…
Reference in a new issue