mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-23 19:42:50 -06:00
fix failure is the printout is empty
This commit is contained in:
@@ -71,6 +71,10 @@ again: {
|
|||||||
|
|
||||||
PgfText *PgfPrinter::get_text()
|
PgfText *PgfPrinter::get_text()
|
||||||
{
|
{
|
||||||
|
if (res == NULL) {
|
||||||
|
res = (PgfText*) malloc(sizeof(PgfText));
|
||||||
|
res->size = 0;
|
||||||
|
}
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user