Commit c14e9847 authored by Markus Armbruster's avatar Markus Armbruster Committed by Gerd Hoffmann
Browse files

vnc: Drop superfluous conditionals around g_strdup()

parent 64641d87
Loading
Loading
Loading
Loading
+1 −4
Original line number Diff line number Diff line
@@ -3009,10 +3009,7 @@ int vnc_display_password(DisplayState *ds, const char *password)
    }

    g_free(vs->password);
    vs->password = NULL;
    if (password) {
    vs->password = g_strdup(password);
    }

    return 0;
}