[Asterisk-Dev] not a bug, but probably a good idea to fix

Steven Critchfield critch at basesys.com
Thu Aug 28 12:10:09 MST 2003


After seeing the complaints about asterisk not responding when using
cdr_mysql, I thought I would go looking at the code. 

Anyways, I have noticed this thing that might need be changed.

line 58
        memset(sqlcmd,0,2048);
Should probably be
	memset(sqlcmd,0,sizeof(sqlcmd));
So that if you needed to change the size of sqlcmd it is in 1 place
only.

Granted I didn't expect to find anything obvious but I wanted to look
anyways.



-- 
Steven Critchfield <critch at basesys.com>




More information about the asterisk-dev mailing list