Explorar el Código

bug fix for user is NULL

tags/v1.10.90
Jiuyang liu hace 4 años
padre
commit
d68c64e669
No account linked to committer's email address
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1
    1
      vncviewer/UserDialog.cxx

+ 1
- 1
vncviewer/UserDialog.cxx Ver fichero

@@ -78,7 +78,7 @@ void UserDialog::getUserPasswd(bool secure, char** user, char** password)
char *envUsername = getenv("VNC_USERNAME");
char *envPassword = getenv("VNC_PASSWORD");

if(envUsername && envPassword) {
if(user && envUsername && envPassword) {
*user = strdup(envUsername);
*password = strdup(envPassword);
return;

Cargando…
Cancelar
Guardar