Skip to content
Snippets Groups Projects
Commit 27337de5 authored by Nicolas Trangez's avatar Nicolas Trangez Committed by Austin Seipp
Browse files

Check correct variable for NULL


Issue discovered by Coverity scan, CID 43163. This should fix CID 43172 as a
side-effect as well.

Signed-off-by: default avatarAustin Seipp <austin@well-typed.com>
(cherry picked from commit 6ed7123d)
parent 07fb613b
No related branches found
No related tags found
No related merge requests found
......@@ -151,7 +151,7 @@ readTix(void) {
ws();
lookup = lookupHashTable(moduleHash, (StgWord)tmpModule->modName);
if (tmpModule == NULL) {
if (lookup == NULL) {
debugTrace(DEBUG_hpc,"readTix: new HpcModuleInfo for %s",
tmpModule->modName);
insertHashTable(moduleHash, (StgWord)tmpModule->modName, tmpModule);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment