Commit 6ed7123d 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>
parent fa0cbd29
...@@ -151,7 +151,7 @@ readTix(void) { ...@@ -151,7 +151,7 @@ readTix(void) {
ws(); ws();
lookup = lookupHashTable(moduleHash, (StgWord)tmpModule->modName); lookup = lookupHashTable(moduleHash, (StgWord)tmpModule->modName);
if (tmpModule == NULL) { if (lookup == NULL) {
debugTrace(DEBUG_hpc,"readTix: new HpcModuleInfo for %s", debugTrace(DEBUG_hpc,"readTix: new HpcModuleInfo for %s",
tmpModule->modName); tmpModule->modName);
insertHashTable(moduleHash, (StgWord)tmpModule->modName, tmpModule); insertHashTable(moduleHash, (StgWord)tmpModule->modName, tmpModule);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment