opnsense-ports/math/symmetrica/files/patch-part.c
Franco Fichtner a304ae0404 */*: sync with upstream
Taken from: HardenedBSD
2018-01-02 23:31:39 +01:00

13 lines
369 B
C

--- part.c.orig 2017-12-31 07:40:55 UTC
+++ part.c
@@ -1767,8 +1767,8 @@ static int rec01(INT ni, OP vec)
/* to compute number of partitions */
{
INT erg = OK;
- if (ni<0) return;
- if (not EMPTYP(S_V_I(vec,ni))) return;
+ if (ni<0) return 0;
+ if (not EMPTYP(S_V_I(vec,ni))) return 0;
else if (ni<=1) M_I_I(1,S_V_I(vec,ni));
else {