opnsense-ports/sysutils/radmind/files/patch-argcargv.c
Franco Fichtner 8cb1a96ede ports: pull in a snapshot of the FreeBSD ports tree
Taken from:	https://github.com/freebsd/freebsd-ports.git
Commit id:	5070672073b68be364139bc6b3a89100bd17d331
2014-11-09 14:03:21 +01:00

13 lines
309 B
C

--- ./argcargv.c.orig 2010-12-13 04:42:49.000000000 +0100
+++ ./argcargv.c 2014-06-29 12:15:04.243544285 +0200
@@ -48,7 +48,9 @@
if ( acav == NULL ) {
if ( acavg == NULL ) {
- acavg = acav_alloc();
+ if (( acavg = acav_alloc()) == NULL ) {
+ return( -1 );
+ }
}
acav = acavg;
}