From: Zachary T Welch Date: Wed, 18 Nov 2009 19:56:24 +0000 (-0800) Subject: fix segfault at startup X-Git-Tag: v0.4.0-rc1~513 X-Git-Url: https://review.openocd.org/gitweb?p=openocd.git;a=commitdiff_plain;h=9b1f9810b090958bb4a669034173a01683c6e3e9 fix segfault at startup The previous changes to move the startup TCL code resulted in segfaults during startup. This seemingly innocuous patch fixes the problem. I would explain why changing from 'foo[]' to '*foo' caused this issue, but the difference seems superficial. For now, this hot fix will do, but this issue might bear further scrutiny. --- diff --git a/src/openocd.h b/src/openocd.h index 70e3ee0126..a91d46f2f2 100644 --- a/src/openocd.h +++ b/src/openocd.h @@ -37,6 +37,6 @@ void openocd_sleep_prelude(void); void openocd_sleep_postlude(void); /// provides a hard-coded command environment setup -extern const char *openocd_startup_tcl; +extern const char openocd_startup_tcl[]; #endif