C++: Update comment.

This commit is contained in:
Geoffrey White
2020-02-04 14:39:07 +00:00
parent 9c05ffeb3a
commit 95c77ca3c6

View File

@@ -35,7 +35,7 @@ void processRequest()
adminPrivileges = 0; // OK, since it's a 0 and not a 1
}
// BAD, but it requires pointer analysis to catch
// BAD (requires pointer analysis to catch)
const char** userp = &currentUser;
*userp = userName;
if (!strcmp(currentUser, "admin")) {