diff options
| author | nijtmans@users.sourceforge.net <jan.nijtmans> | 2012-09-19 14:50:11 (GMT) |
|---|---|---|
| committer | nijtmans@users.sourceforge.net <jan.nijtmans> | 2012-09-19 14:50:11 (GMT) |
| commit | 8903874c427af94569a728c6ac5c770c43549203 (patch) | |
| tree | b1a93c9472066ad889bb814aa68d0b255123be23 /unix/tclLoadDl.c | |
| parent | 5ad5db44171a6ac5e6de273b04687063616ed1af (diff) | |
| parent | 3de19b0f651a225ea6b2189d0c61fbb227c9f89e (diff) | |
| download | tcl-8903874c427af94569a728c6ac5c770c43549203.zip tcl-8903874c427af94569a728c6ac5c770c43549203.tar.gz tcl-8903874c427af94569a728c6ac5c770c43549203.tar.bz2 | |
merge trunk
<p>change dde version to 1.4.0b2
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); } |
