Hi,
I'm trying to get the line number when a config function is called.
Looking at the fixup_dbg_pv_dump():
"
dbg_sip_msg_action = dbg_fixup_get_action(param, param_no);
_dbg_sip_msg_cline = dbg_sip_msg_action->cline;
"
The above works as long as the config function is called with at
least 1 parameter. When the config function is called with no
parameters (param == NULL), this will segfault at the moment, due to
invalid access at the second line.
The question is, is there a straightforward way to get the config
number of a config function with no parametersx? Else, I could just
return a negative value meaning that the config line is unknown.
Regards,
Stefan