Completion of error handling

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

I have looked at a few source files for your current software. I have noticed
that checks for return codes are missing.

Would you like to add more error handling for return values from functions like
the following?

- open ? Pj_File constructor

http://trac.pjsip.org/repos/browser/pjproject/trunk/pjlib/include/pj%2B%2B/file.hpp?rev=2394#L100

- pj_pool_create ? pjmedia_clock_create2

http://trac.pjsip.org/repos/browser/pjproject/trunk/pjmedia/src/pjmedia/clock_thread.c?rev=4160#L155

- fwrite ? get_frame

http://trac.pjsip.org/repos/browser/pjproject/trunk/pjmedia/src/pjmedia/conference.c?rev=4198#L2041

- puts ? menu

http://trac.pjsip.org/repos/browser/pjproject/trunk/pjnath/src/pjturn-client/client_main.c?rev=3553#L403

Regards,
Markus



[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux