summaryrefslogtreecommitdiff
path: root/src/openocd.h
diff options
context:
space:
mode:
authorZachary T Welch <zw@superlucidity.net>2009-11-18 11:56:24 -0800
committerZachary T Welch <zw@superlucidity.net>2009-11-18 11:56:24 -0800
commit9b1f9810b090958bb4a669034173a01683c6e3e9 (patch)
treee6090074ea74a0276d8984e67561dab113802d28 /src/openocd.h
parent5e229bbf87fbb5a809553526edf0186dd3dd5cf8 (diff)
downloadopenocd+libswd-9b1f9810b090958bb4a669034173a01683c6e3e9.tar.gz
openocd+libswd-9b1f9810b090958bb4a669034173a01683c6e3e9.tar.bz2
openocd+libswd-9b1f9810b090958bb4a669034173a01683c6e3e9.tar.xz
openocd+libswd-9b1f9810b090958bb4a669034173a01683c6e3e9.zip
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.
Diffstat (limited to 'src/openocd.h')
-rw-r--r--src/openocd.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/openocd.h b/src/openocd.h
index 70e3ee01..a91d46f2 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