mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-15 00:44:19 +09:00
[warnings] fix -Wzero-as-null-pointer-constant
This commit is contained in:
committed by
Martin Fleisz
parent
b5fc019c64
commit
8e51463a7e
@@ -64,9 +64,9 @@ BOOL sdl_webview_get_aad_auth_code(freerdp* instance, const char* hostname, char
|
||||
int argc = 1;
|
||||
char* name = "FreeRDP WebView";
|
||||
size_t size = 0;
|
||||
char* login_url = NULL;
|
||||
char* login_url = nullptr;
|
||||
|
||||
*code = NULL;
|
||||
*code = nullptr;
|
||||
*client_id = "5177bc73-fd99-4c77-a90c-76844c9b6999";
|
||||
*redirect_uri =
|
||||
"ms-appx-web%3a%2f%2fMicrosoft.AAD.BrokerPlugin%2f5177bc73-fd99-4c77-a90c-76844c9b6999";
|
||||
@@ -92,5 +92,5 @@ BOOL sdl_webview_get_aad_auth_code(freerdp* instance, const char* hostname, char
|
||||
app.exec();
|
||||
|
||||
free(login_url);
|
||||
return (*code != NULL);
|
||||
return (*code != nullptr);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user