Closed jiafulow closed 8 years ago
When there is no file in the current session, gd->file_name returns NULL and may cause seg fault. The macro DOC_FILENAME returns a string "untitled" when gd->file_name is NULL, so it is safer.
Thanks!
You're welcome. Thanks for making the plugin in the first place!
When there is no file in the current session, gd->file_name returns NULL and may cause seg fault. The macro DOC_FILENAME returns a string "untitled" when gd->file_name is NULL, so it is safer.