freebsd-ports/graphics/stamp/files/patch-lib_rcfile.c
Robert Clausecker 06483f297b graphics/stamp: Unbreak with -fno-common
* Submitter becomes MAINTAINER. Already maintainer of several ports.
* Define LICENSE

While here:

 * Remake old patches
 * Add USES localbase

PR:	257911
MFH:	2021Q3
2021-08-19 07:57:48 +02:00

14 lines
422 B
C

--- lib/rcfile.c.orig 1999-03-11 08:30:32 UTC
+++ lib/rcfile.c
@@ -101,8 +101,8 @@ if ((!(strcmp(Args->LowerFont,""))) &&
exit(ERR_NOLFONT) ;
}
- if ((!(strcmp(Args->Infile,""))) ||
- (!(strcmp(Args->Outfile,"")))) {
+ if ((Args->Infile == NULL) ||
+ (Args->Outfile == NULL)) {
fprintf(stderr, "stamp: You must specify both an input and output JPEG image.\n") ;
exit(ERR_MISSIOFILE) ;
}