#! /bin/sh /usr/share/dpatch/dpatch-run ## fapi-buildchar-object-null-check.dpatch by ## ## All lines beginning with `## DP:' are a description of the patch. ## DP: No description. @DPATCH@ diff -urNad ghostscript-8.71.dfsg.1~/psi/zfapi.c ghostscript-8.71.dfsg.1/psi/zfapi.c --- ghostscript-8.71.dfsg.1~/psi/zfapi.c 2010-01-28 15:44:22.000000000 +0100 +++ ghostscript-8.71.dfsg.1/psi/zfapi.c 2010-04-29 09:30:09.789834388 +0200 @@ -1311,7 +1311,7 @@ } else if ((code = build_proc_name_refs(imemory, &build, ".FAPIBuildChar", ".FAPIBuildGlyph")) < 0) return code; - if (pdata->BuildChar.value.pname && build.BuildChar.value.pname && + if (r_type(&(pdata->BuildChar)) != t_null && pdata->BuildChar.value.pname && build.BuildChar.value.pname && name_index(imemory, &pdata->BuildChar) == name_index(imemory, &build.BuildChar)) { /* Already rebuilt - maybe a substituted font. */ } else {