summaryrefslogtreecommitdiff
path: root/media-gfx/epsonscan2/files/0002-Fix-crash.patch
diff options
context:
space:
mode:
authorMarcin Deranek <marcin.deranek@slonko.net>2024-08-17 10:46:34 +0200
committerMarcin Deranek <marcin.deranek@slonko.net>2024-08-17 10:46:34 +0200
commit0d665673d100db7f7312352284378e92d4929283 (patch)
treedca6a32676a0f8c88d861e294d9b6652596234be /media-gfx/epsonscan2/files/0002-Fix-crash.patch
parent28c726f23f61ecbb51537a1a65d8838ca621545d (diff)
downloadportage-0d665673d100db7f7312352284378e92d4929283.tar.gz
portage-0d665673d100db7f7312352284378e92d4929283.tar.bz2
portage-0d665673d100db7f7312352284378e92d4929283.zip
media-gfx/epsonscan2 Fix crash
Diffstat (limited to 'media-gfx/epsonscan2/files/0002-Fix-crash.patch')
-rw-r--r--media-gfx/epsonscan2/files/0002-Fix-crash.patch31
1 files changed, 31 insertions, 0 deletions
diff --git a/media-gfx/epsonscan2/files/0002-Fix-crash.patch b/media-gfx/epsonscan2/files/0002-Fix-crash.patch
new file mode 100644
index 0000000..7125e37
--- /dev/null
+++ b/media-gfx/epsonscan2/files/0002-Fix-crash.patch
@@ -0,0 +1,31 @@
+From a162321f309b38d97442cac06185ebfb098b3b22 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Hubert=20Figui=C3=A8re?= <hub@figuiere.net>
+Date: Sat, 1 Jun 2024 19:41:51 -0400
+Subject: [PATCH 2/4] Fix crash
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+Signed-off-by: Hubert Figuière <hub@figuiere.net>
+---
+ src/ES2Command/Src/Interface/ipc/ipcInterfaceImpl.cpp | 4 +++-
+ 1 file changed, 3 insertions(+), 1 deletion(-)
+
+diff --git a/src/ES2Command/Src/Interface/ipc/ipcInterfaceImpl.cpp b/src/ES2Command/Src/Interface/ipc/ipcInterfaceImpl.cpp
+index a095ffd..0f1bc90 100755
+--- a/src/ES2Command/Src/Interface/ipc/ipcInterfaceImpl.cpp
++++ b/src/ES2Command/Src/Interface/ipc/ipcInterfaceImpl.cpp
+@@ -128,7 +128,9 @@ ESErrorCode IPCInterfaceImpl::Open()
+ if(!ES_IsExistFile(dat_file)){
+ FILE *fp;
+ fp = fopen(dat_file.c_str(),"w");
+- fclose(fp);
++ if (fp) {
++ fclose(fp);
++ }
+ }
+ interrupt_.reset(new ipc_interrupt(delegate_, dat_file, IPC_SHARED_ID, IPC_SEMAHORE_KEY));
+ interrupt_->start();
+--
+2.45.0
+