about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2014-10-14T13·11+0200
committerEelco Dolstra <eelco.dolstra@logicblox.com>2014-10-31T07·49+0100
commit80893a13a71928de3697ce25585b59f395b46261 (patch)
tree2dc273215aa783fe1193c8fcb2b674c75b04102a /src
parenta51f8d67473953307ef7fd0ea033a81fb022289f (diff)
Shut up a clang warning
Diffstat (limited to 'src')
-rw-r--r--src/libmain/stack.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libmain/stack.cc b/src/libmain/stack.cc
index 64df95547e0b..b670e695d140 100644
--- a/src/libmain/stack.cc
+++ b/src/libmain/stack.cc
@@ -18,7 +18,7 @@ static void sigsegvHandler(int signo, siginfo_t * info, void * ctx)
        the stack pointer.  Unfortunately, getting the stack pointer is
        not portable. */
     bool haveSP = true;
-    char * sp;
+    char * sp = 0;
 #if defined(__x86_64__) && defined(REG_RSP)
     sp = (char *) ((ucontext *) ctx)->uc_mcontext.gregs[REG_RSP];
 #elif defined(REG_ESP)