* | (__| |_| | _ <| |___
* \___|\___/|_| \_\_____|
*
- * Copyright (C) 1998 - 2013, Daniel Stenberg, <daniel@haxx.se>, et al.
+ * Copyright (C) 1998 - 2016, Daniel Stenberg, <daniel@haxx.se>, et al.
*
* This software is licensed as described in the file COPYING, which
* you should have received as part of this distribution. The terms
{
password = strdup("");
login = strdup("");
- if (!password || !login) {
- Curl_safefree(password);
- Curl_safefree(login);
- return CURLE_OUT_OF_MEMORY;
+ if(!password || !login) {
+ Curl_safefree(password);
+ Curl_safefree(login);
+ return CURLE_OUT_OF_MEMORY;
}
return CURLE_OK;
}
abort_unless(password != NULL, "returned NULL!");
fail_unless(password[0] == 0, "password should not have been changed");
abort_unless(login != NULL, "returned NULL!");
- fail_unless(strncmp(login, "me", 2) == 0, "login should not have been changed");
+ fail_unless(strncmp(login, "me", 2) == 0,
+ "login should not have been changed");
/*
* Test a non existent login and host in our netrc file.
abort_unless(password != NULL, "returned NULL!");
fail_unless(password[0] == 0, "password should not have been changed");
abort_unless(login != NULL, "returned NULL!");
- fail_unless(strncmp(login, "me", 2) == 0, "login should not have been changed");
+ fail_unless(strncmp(login, "me", 2) == 0,
+ "login should not have been changed");
/*
* Test a non existent login (substring of an existing one) in our
abort_unless(password != NULL, "returned NULL!");
fail_unless(password[0] == 0, "password should not have been changed");
abort_unless(login != NULL, "returned NULL!");
- fail_unless(strncmp(login, "admi", 4) == 0, "login should not have been changed");
+ fail_unless(strncmp(login, "admi", 4) == 0,
+ "login should not have been changed");
/*
* Test a non existent login (superstring of an existing one)
abort_unless(password != NULL, "returned NULL!");
fail_unless(password[0] == 0, "password should not have been changed");
abort_unless(login != NULL, "returned NULL!");
- fail_unless(strncmp(login, "adminn", 6) == 0, "login should not have been changed");
+ fail_unless(strncmp(login, "adminn", 6) == 0,
+ "login should not have been changed");
/*
* Test for the first existing host in our netrc file