[commit: ghc] master: Initialize ptr to NULL to silence Clang warning. (88e97d9)
Austin Seipp
mad.one at gmail.com
Fri Jun 21 06:59:09 CEST 2013
Repository : http://darcs.haskell.org/ghc.git/
On branch : master
https://github.com/ghc/ghc/commit/88e97d9a418e8b830ba1d3259aef351b7fb53e6d
>---------------------------------------------------------------
commit 88e97d9a418e8b830ba1d3259aef351b7fb53e6d
Author: Austin Seipp <aseipp at pobox.com>
Date: Thu Jun 20 23:56:07 2013 -0500
Initialize ptr to NULL to silence Clang warning.
Signed-off-by: Austin Seipp <aseipp at pobox.com>
>---------------------------------------------------------------
rts/Adjustor.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/rts/Adjustor.c b/rts/Adjustor.c
index 9f879de..789bd69 100644
--- a/rts/Adjustor.c
+++ b/rts/Adjustor.c
@@ -335,7 +335,7 @@ createAdjustor(int cconv, StgStablePtr hptr,
)
{
void *adjustor = NULL;
- void *code;
+ void *code = NULL;
switch (cconv)
{
More information about the ghc-commits
mailing list