The error occurs because the routine that calls this function assumes that the value of error_ptr can be 0. The check_for_error() function, however, assumes that error_ptr isn’t null, which means that line 3 can dereference a null pointer.If the value of error_ptr is null, line 3 isn’t executed. Note that you are not naming a label used in your program. Instead, you are naming one of the line numbers generated by TotalView.
Rogue Wave Software, Inc. |
Voice: (303) 473-9118 |
rwonlinedocs@roguewave.com |