Fixes #1845, essentially by reverting
806b8a2f
}
gvLayoutJobs(Gvc, G); /* take layout engine from command line */
gvRenderJobs(Gvc, G);
- gvFinalize(Gvc);
r = agreseterrors();
rc = MAX(rc,r);
prev = G;
}
}
+ gvFinalize(Gvc);
r = gvFreeContext(Gvc);
return (MAX(rc,r));
}
static uint64_t crc;
#endif /* HAVE_LIBZ */
+#include <assert.h>
#include <common/const.h>
#include <common/memory.h>
#include <gvc/gvplugin_device.h>
job->output_data[job->output_data_position] = '\0'; /* keep null termnated */
return len;
}
- else
- return fwrite(s, sizeof(char), len, job->output_file);
+ else {
+ assert(job->output_file != NULL);
+ return fwrite(s, sizeof(char), len, job->output_file);
+ }
return 0;
}