GNOME Bugzilla – Bug 699750
Print dialog crashes when printer does not provide printer-state-message
Last modified: 2013-05-09 13:17:34 UTC
Created attachment 243377 [details] [review] don't crash when printer-state-message not provided Since the attribute "printer-state-message" is not strictly required by IPP, it can happen that a particular printer doesn't provide it (especially when printing to an avahi printer). This leads to a crash in set_info_state_message(). Attached patch fixes this bug. This was originally reported here: https://bugzilla.redhat.com/show_bug.cgi?id=952935 Marek
Comment on attachment 243377 [details] [review] don't crash when printer-state-message not provided I've committed slightly modified version of the patch to 3.8 and master: - if (strlen (info->state_msg) == 0) + if (info->state_msg == NULL || info->state_msg[0] == '\0')