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 08:05:29 -0500 |
commit | 27337de5999e43807131acb290447e4ab8aa334c (patch) | |
tree | af6461047a4ff24c5db9262513e943b5d1ef2e02 | |
parent | 07fb613bf599aa9237b1ef73861706b447173d38 (diff) | |
download | haskell-27337de5999e43807131acb290447e4ab8aa334c.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>
(cherry picked from commit 6ed7123dcc24c343a1ece85c7aa72ac1c34e6aff)
-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); |