From: Zach W. <zw...@us...> - 2009-11-18 21:03:19
|
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "Main OpenOCD repository". The branch, master has been updated via 9b1f9810b090958bb4a669034173a01683c6e3e9 (commit) from 5e229bbf87fbb5a809553526edf0186dd3dd5cf8 (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log ----------------------------------------------------------------- commit 9b1f9810b090958bb4a669034173a01683c6e3e9 Author: Zachary T Welch <zw...@su...> Date: Wed Nov 18 11:56:24 2009 -0800 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 70e3ee0..a91d46f 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 ----------------------------------------------------------------------- Summary of changes: src/openocd.h | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) hooks/post-receive -- Main OpenOCD repository |