[Okular-devel] [Bug 157222] Check return codes everywhere
Markus Elfring
Markus.Elfring at web.de
Wed Feb 6 23:28:13 CET 2008
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
http://bugs.kde.org/show_bug.cgi?id=157222
------- Additional Comments From Markus.Elfring web de 2008-02-06 23:28 -------
By the way: I wonder a bit about the following source code.
macrotable = new macro[max_num_of_chars_in_font];
if (macrotable == 0) {
kError(kvs::dvi) << i18n("Could not allocate memory for a macro table.") << endl;
exit(0);
}
I was informed that the program might be terminated by the new operator in the ENOMEM case if exceptions were switched off. I assume that there is no need to check for the null pointer then. Otherwise, I would prefer the reaction "exit(errno)" instead of the current "exit(EXIT_SUCCESS)".
More information about the Okular-devel
mailing list