Menu

#26 Check return codes everywhere

open
nobody
None
6
2007-02-05
2005-09-03
No

Some checks for return codes are missing.

Example:
Please add more error handling for null pointers from
"strdup" like in the function "tl" and from "malloc"
like in the functions "stat_sqlplus" and "get_env".
http://cvs.sourceforge.net/viewcvs.py/gqlplus/gqlplus/gqlplus.c?rev=1.6&view=markup

Discussion

  • Markus Elfring

    Markus Elfring - 2007-02-05
    • priority: 5 --> 6
     
  • Markus Elfring

    Markus Elfring - 2007-02-05

    Logged In: YES
    user_id=572001
    Originator: YES

    Would you also like to check for error codes from the functions "fprintf" and "fclose"?

     

Log in to post a comment.

Monday.com Logo