summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfvogel <fvogelnew1@free.fr>2023-10-28 08:11:05 (GMT)
committerfvogel <fvogelnew1@free.fr>2023-10-28 08:11:05 (GMT)
commit73c017afb1b0e1964e40658c06778f8d6a6ad730 (patch)
tree29b9fc5c83e3f22678623ed4d61b65faeb0387f9
parentc25f08d8cfc7cf44411145cc13f3d201bb9fbf86 (diff)
parentdb574cea3e2dc3c5bd900ffec5a5f40b063a9634 (diff)
downloadtk-73c017afb1b0e1964e40658c06778f8d6a6ad730.zip
tk-73c017afb1b0e1964e40658c06778f8d6a6ad730.tar.gz
tk-73c017afb1b0e1964e40658c06778f8d6a6ad730.tar.bz2
Resolve unintended fork.
-rw-r--r--generic/tkImgPhoto.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/generic/tkImgPhoto.c b/generic/tkImgPhoto.c
index 0261765..757fae4 100644
--- a/generic/tkImgPhoto.c
+++ b/generic/tkImgPhoto.c
@@ -904,11 +904,10 @@ ImgPhotoCmd(
}
} else {
typedef int (*NewStringWriteProc)(Tcl_Interp *interp,
- Tcl_Obj *formatString, Tk_PhotoImageBlock *blockPtr,
- void *dummy);
+ Tcl_Obj *formatString, Tk_PhotoImageBlock *blockPtr);
result = ((NewStringWriteProc)(void *)stringWriteProc)(interp,
- options.format, &block, NULL);
+ options.format, &block);
}
if (options.background) {
Tk_FreeColor(options.background);