mirror of
https://github.com/luanti-org/luanti.git
synced 2025-07-22 17:18:39 +00:00
Fix some minor code issues all over the place
This commit is contained in:
parent
289425f6bd
commit
74762470b2
19 changed files with 45 additions and 109 deletions
|
@ -1015,10 +1015,10 @@ void srp_user_process_challenge(struct SRPUser *usr,
|
|||
goto cleanup_and_exit;
|
||||
|
||||
*bytes_M = usr->M;
|
||||
if (len_M) *len_M = hash_length(usr->hash_alg);
|
||||
*len_M = hash_length(usr->hash_alg);
|
||||
} else {
|
||||
*bytes_M = NULL;
|
||||
if (len_M) *len_M = 0;
|
||||
*len_M = 0;
|
||||
}
|
||||
|
||||
cleanup_and_exit:
|
||||
|
|
|
@ -633,7 +633,7 @@ static bool parseNamedColorString(const std::string &value, video::SColor &color
|
|||
color_name = value;
|
||||
}
|
||||
|
||||
color_name = lowercase(value);
|
||||
color_name = lowercase(color_name);
|
||||
|
||||
std::map<const std::string, unsigned>::const_iterator it;
|
||||
it = named_colors.colors.find(color_name);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue