freebsd-ports/editors/gate/files/patch-subs.c
William Grzybowski 9bcd36c3f8 editors/gate: fix build with clang
- Fix build with clang
- Trim Makefile header

Approved by:	culot / jpaetzel (mentors, implicit)
2013-06-13 23:06:34 +00:00

13 lines
317 B
C

diff --git subs.c subs.c
index 287d9d3..a6caea9 100644
--- subs.c
+++ subs.c
@@ -429,7 +429,7 @@ int cliplast(char *lastbuf, int bufsize)
#endif
/* Make a copy of the file */
- if ((cfp= make_copy()) == NULL) return;
+ if ((cfp= make_copy()) == NULL) return 0;
fflush(cfp);
fseek(cfp,0L,0);