diff options
author | Nicolas Trangez <ikke@nicolast.be> | 2014-04-23 20:37:51 +0200 |
---|---|---|
committer | Austin Seipp <austin@well-typed.com> | 2014-04-27 04:21:20 -0500 |
commit | 6ed7123dcc24c343a1ece85c7aa72ac1c34e6aff (patch) | |
tree | 21592a061cd1a7c316b4b76f556a458e4fb2934d /rts/Hpc.c | |
parent | fa0cbd297ba12e02273efcaa5f52fe76e10b7126 (diff) | |
download | haskell-6ed7123dcc24c343a1ece85c7aa72ac1c34e6aff.tar.gz |
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: Austin Seipp <austin@well-typed.com>
Diffstat (limited to 'rts/Hpc.c')
-rw-r--r-- | rts/Hpc.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |