wok-next view cvs/stuff/patches/cvs-1.11.19-comp.patch @ rev 21311

updated inkscape (0.92.2 -> 0.92.4)
author Hans-G?nter Theisgen
date Tue Dec 10 11:12:42 2019 +0100 (2019-12-10)
parents
children
line source
1 --- cvs-1.11.19/src/rcs.c.old 2005-03-17 11:21:18.000000000 +0100
2 +++ cvs-1.11.19/src/rcs.c 2005-03-17 11:21:56.000000000 +0100
3 @@ -138,7 +138,7 @@
4 string comparisons. This macro speeds things up a bit by skipping
5 the function call when the first characters are different. It
6 evaluates its arguments multiple times. */
7 -#define STREQ(a, b) (*(char *)(a) == *(char *)(b) && strcmp ((a), (b)) == 0)
8 +#define STREQ(a, b) ((a) != NULL && (b) != NULL && *(char *)(a) == *(char *)(b) && strcmp ((a), (b)) == 0)
10 /*
11 * We don't want to use isspace() from the C library because: