summaryrefslogtreecommitdiffstats
path: root/generic
diff options
context:
space:
mode:
Diffstat (limited to 'generic')
-rw-r--r--generic/tkImgPhoto.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/generic/tkImgPhoto.c b/generic/tkImgPhoto.c
index 47aa523..f6fee84 100644
--- a/generic/tkImgPhoto.c
+++ b/generic/tkImgPhoto.c
@@ -1675,6 +1675,10 @@ ParseSubcommandOptions(
*/
if ((allowedOptions & bit) == 0) {
+ if (optPtr->name == NULL) {
+ optPtr->name = objv[index];
+ continue;
+ }
Tcl_AppendResult(interp, "unrecognized option \"",
Tcl_GetString(objv[index]),
"\": must be ", NULL);