void-packages/srcpkgs/bcal/patches/non-null.patch

12 lines
327 B
Diff
Raw Normal View History

--- src/bcal.c 2018-12-11 16:12:41.000000000 +0100
+++ src/bcal.c 2019-09-24 22:34:39.475836973 +0200
@@ -1923,7 +1923,7 @@
char *expr = fixexpr(exp, &ret); /* Make parsing compatible */
char *ptr;
- log(DEBUG, "expr: %s\n", expr);
+ log(DEBUG, "expr: %s\n", expr ? expr : "<null>");
if (expr == NULL) {
if (ret)