openbsd-ports/misc/mc/patches/patch-edit_editcmd_c
2005-02-17 21:59:11 +00:00

13 lines
403 B
Plaintext

$OpenBSD: patch-edit_editcmd_c,v 1.1 2005/02/17 21:59:11 robert Exp $
--- edit/editcmd.c.orig Thu Feb 17 22:33:12 2005
+++ edit/editcmd.c Thu Feb 17 22:33:30 2005
@@ -247,7 +247,7 @@
g_free (savedir);
fd = mc_mkstemps (&savename, saveprefix, NULL);
g_free (saveprefix);
- if (!savename)
+ if (fd == -1)
return 0;
/* FIXME:
* Close for now because mc_mkstemps use pure open system call