Browse Source

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.
tags/v0.4.0-rc1
Zachary T Welch 12 years ago
parent
commit
9b1f9810b0
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/openocd.h

+ 1
- 1
src/openocd.h View File

@@ -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

Loading…
Cancel
Save