Commit 662b8796 authored by Keith Packard's avatar Keith Packard
Browse files

Avoid crashing with null expressions in debug code

parent 2d39321f
......@@ -153,7 +153,8 @@ FcOpPrint (FcOp op)
FcExprPrint (const FcExpr *expr)
switch (expr->op) {
if (!expr) printf ("none");
else switch (expr->op) {
case FcOpInteger: printf ("%d", expr->u.ival); break;
case FcOpDouble: printf ("%g", expr->u.dval); break;
case FcOpString: printf ("\"%s\"", expr->u.sval); break;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment