Fossil SCM
Skip over Jim commands to create if they have a NULL name or function pointer.
Commit
389f9fca5d2ffb9a102857522aeaf554c69b134b
Parent
d87454917c58774…
1 file changed
+1
+1
| --- src/th_tcl.c | ||
| +++ src/th_tcl.c | ||
| @@ -435,10 +435,11 @@ | ||
| 435 | 435 | void *pContext |
| 436 | 436 | ){ |
| 437 | 437 | int i; |
| 438 | 438 | /* Add the Tcl integration commands to Jim. */ |
| 439 | 439 | for(i=0; i<(sizeof(aCommand)/sizeof(aCommand[0])); i++){ |
| 440 | + if ( !aCommand[i].zName || !aCommand[i].xProc ) continue; | |
| 440 | 441 | void *ctx = aCommand[i].pContext; |
| 441 | 442 | /* Use Tcl interpreter for context? */ |
| 442 | 443 | if( !ctx ) ctx = pContext; |
| 443 | 444 | Jim_CreateCommand(interp, aCommand[i].zName, aCommand[i].xProc, ctx, NULL); |
| 444 | 445 | } |
| 445 | 446 |
| --- src/th_tcl.c | |
| +++ src/th_tcl.c | |
| @@ -435,10 +435,11 @@ | |
| 435 | void *pContext |
| 436 | ){ |
| 437 | int i; |
| 438 | /* Add the Tcl integration commands to Jim. */ |
| 439 | for(i=0; i<(sizeof(aCommand)/sizeof(aCommand[0])); i++){ |
| 440 | void *ctx = aCommand[i].pContext; |
| 441 | /* Use Tcl interpreter for context? */ |
| 442 | if( !ctx ) ctx = pContext; |
| 443 | Jim_CreateCommand(interp, aCommand[i].zName, aCommand[i].xProc, ctx, NULL); |
| 444 | } |
| 445 |
| --- src/th_tcl.c | |
| +++ src/th_tcl.c | |
| @@ -435,10 +435,11 @@ | |
| 435 | void *pContext |
| 436 | ){ |
| 437 | int i; |
| 438 | /* Add the Tcl integration commands to Jim. */ |
| 439 | for(i=0; i<(sizeof(aCommand)/sizeof(aCommand[0])); i++){ |
| 440 | if ( !aCommand[i].zName || !aCommand[i].xProc ) continue; |
| 441 | void *ctx = aCommand[i].pContext; |
| 442 | /* Use Tcl interpreter for context? */ |
| 443 | if( !ctx ) ctx = pContext; |
| 444 | Jim_CreateCommand(interp, aCommand[i].zName, aCommand[i].xProc, ctx, NULL); |
| 445 | } |
| 446 |