Fossil SCM

Fix missing argument check for pxDeleteInterp in the Tcl integration module.

mistachkin 2013-09-16 23:17 trunk
Commit ee9d2bfb316a63634e2e37ab3a27ef28db0cca2b
1 file changed +1 -1
+1 -1
--- src/th_tcl.c
+++ src/th_tcl.c
@@ -594,11 +594,11 @@
594594
tcl_DeleteInterpProc **pxDeleteInterp
595595
){
596596
#if defined(USE_TCL_STUBS)
597597
char fileName[] = TCL_LIBRARY_NAME;
598598
#endif /* defined(USE_TCL_STUBS) */
599
- if( !pLibrary || !pxFindExecutable || !pxCreateInterp ){
599
+ if( !pLibrary || !pxFindExecutable || !pxCreateInterp || !pxDeleteInterp ){
600600
Th_ErrorMessage(interp,
601601
"invalid Tcl loader argument(s)", (const char *)"", 0);
602602
return TH_ERROR;
603603
}
604604
#if defined(USE_TCL_STUBS)
605605
--- src/th_tcl.c
+++ src/th_tcl.c
@@ -594,11 +594,11 @@
594 tcl_DeleteInterpProc **pxDeleteInterp
595 ){
596 #if defined(USE_TCL_STUBS)
597 char fileName[] = TCL_LIBRARY_NAME;
598 #endif /* defined(USE_TCL_STUBS) */
599 if( !pLibrary || !pxFindExecutable || !pxCreateInterp ){
600 Th_ErrorMessage(interp,
601 "invalid Tcl loader argument(s)", (const char *)"", 0);
602 return TH_ERROR;
603 }
604 #if defined(USE_TCL_STUBS)
605
--- src/th_tcl.c
+++ src/th_tcl.c
@@ -594,11 +594,11 @@
594 tcl_DeleteInterpProc **pxDeleteInterp
595 ){
596 #if defined(USE_TCL_STUBS)
597 char fileName[] = TCL_LIBRARY_NAME;
598 #endif /* defined(USE_TCL_STUBS) */
599 if( !pLibrary || !pxFindExecutable || !pxCreateInterp || !pxDeleteInterp ){
600 Th_ErrorMessage(interp,
601 "invalid Tcl loader argument(s)", (const char *)"", 0);
602 return TH_ERROR;
603 }
604 #if defined(USE_TCL_STUBS)
605

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button