mirror of
https://github.com/reactos/reactos.git
synced 2025-01-05 22:12:46 +00:00
Avoid using uninitialized variables
svn path=/trunk/; revision=20565
This commit is contained in:
parent
d31486016d
commit
afb3a84621
1 changed files with 7 additions and 4 deletions
|
@ -211,13 +211,16 @@ int login(const char *host)
|
|||
int n, aflag = 0;
|
||||
|
||||
user = pass = acct = 0;
|
||||
if (ruserpass(host, &puser, &ppass, &pacct) < 0) {
|
||||
n = ruserpass(host, &puser, &ppass, &pacct);
|
||||
if (n < 0) {
|
||||
code = -1;
|
||||
return(0);
|
||||
}
|
||||
user = puser;
|
||||
pass = ppass;
|
||||
acct = pacct;
|
||||
if (0 != n) {
|
||||
user = puser;
|
||||
pass = ppass;
|
||||
acct = pacct;
|
||||
}
|
||||
while (user == NULL) {
|
||||
const char *myname = "none"; // This needs to become the usename env
|
||||
|
||||
|
|
Loading…
Reference in a new issue