Skip to content
Snippets Groups Projects
Commit c350764c authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Fix error in previous commit to this file

C allows char* p = '\0' (which is clearly wrong)
C++ does not.
parent 0440df56
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
Pipeline #4442 passed
......@@ -219,13 +219,13 @@ bool get_crypt_error_string(int status, CRYPT_HANDLE sess, char **estr, const ch
}
if (emsg) {
if(asprintf(estr, "%s '%s' (%d) %s", crypt_lstr(level), emsg, status, action) < 0)
*estr = '\0';
*estr = NULL;
if (allocated)
free_crypt_attrstr(emsg);
}
else {
if(asprintf(estr, "%s (%d) %s", crypt_lstr(level), status, action) < 0)
*estr = '\0';
*estr = NULL;
}
}
return false;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment