diff options
author | jan.nijtmans <jan.nijtmans@noemail.net> | 2012-09-19 14:50:11 (GMT) |
---|---|---|
committer | jan.nijtmans <jan.nijtmans@noemail.net> | 2012-09-19 14:50:11 (GMT) |
commit | 3a5cc4f9247b76b9afec17299adc649bffbc50e8 (patch) | |
tree | b1a93c9472066ad889bb814aa68d0b255123be23 /unix/tclLoadDl.c | |
parent | a130a8ddcf0c1ad3d5b3521fd6304e1850b60997 (diff) | |
parent | 1ec38d677d816f81e86fc5d72aa543ad02fd39c7 (diff) | |
download | tcl-3a5cc4f9247b76b9afec17299adc649bffbc50e8.zip tcl-3a5cc4f9247b76b9afec17299adc649bffbc50e8.tar.gz tcl-3a5cc4f9247b76b9afec17299adc649bffbc50e8.tar.bz2 |
merge trunk
<p>change dde version to 1.4.0b2
FossilOrigin-Name: 82e045469a0b089c3d639729b57e12875ba3a4f2
Diffstat (limited to 'unix/tclLoadDl.c')
-rw-r--r-- | unix/tclLoadDl.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/unix/tclLoadDl.c b/unix/tclLoadDl.c index f8fe6d3..a48aa23 100644 --- a/unix/tclLoadDl.c +++ b/unix/tclLoadDl.c @@ -176,8 +176,14 @@ FindSymbol( } Tcl_DStringFree(&ds); if (proc == NULL && interp != NULL) { + const char *errorStr = dlerror(); + + if (!errorStr) { + errorStr = "unknown"; + } + Tcl_SetObjResult(interp, Tcl_ObjPrintf( - "cannot find symbol \"%s\": %s", symbol, dlerror())); + "cannot find symbol \"%s\": %s", symbol, errorStr)); Tcl_SetErrorCode(interp, "TCL", "LOOKUP", "LOAD_SYMBOL", symbol, NULL); } |