May crash if GetCommandLineW failed
authorxie.kunming <xie.kunming@astute-tec.com>
Fri, 25 Jan 2019 09:54:25 +0000 (17:54 +0800)
committerxie.kunming <xie.kunming@astute-tec.com>
Fri, 25 Jan 2019 09:54:25 +0000 (17:54 +0800)
client/Windows/cli/wfreerdp.c

index ad9160c..5eda064 100644 (file)
@@ -54,7 +54,7 @@ INT WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance,
        RDP_CLIENT_ENTRY_POINTS clientEntryPoints;
        int ret = 1;
        int argc = 0, i;
-       LPWSTR* args;
+       LPWSTR* args = NULL;
        LPWSTR cmd;
        char** argv;
        ZeroMemory(&clientEntryPoints, sizeof(RDP_CLIENT_ENTRY_POINTS));