diff options
author | fvogel <fvogelnew1@free.fr> | 2023-10-28 08:11:05 (GMT) |
---|---|---|
committer | fvogel <fvogelnew1@free.fr> | 2023-10-28 08:11:05 (GMT) |
commit | 73c017afb1b0e1964e40658c06778f8d6a6ad730 (patch) | |
tree | 29b9fc5c83e3f22678623ed4d61b65faeb0387f9 | |
parent | c25f08d8cfc7cf44411145cc13f3d201bb9fbf86 (diff) | |
parent | db574cea3e2dc3c5bd900ffec5a5f40b063a9634 (diff) | |
download | tk-73c017afb1b0e1964e40658c06778f8d6a6ad730.zip tk-73c017afb1b0e1964e40658c06778f8d6a6ad730.tar.gz tk-73c017afb1b0e1964e40658c06778f8d6a6ad730.tar.bz2 |
Resolve unintended fork.
-rw-r--r-- | generic/tkImgPhoto.c | 5 |
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); |