[sr-dev] git:master: db_mysql: fix segfault when recursive queries are made

Daniel-Constantin Mierla miconda at gmail.com
Mon Apr 29 13:11:54 CEST 2013


Hello,

On 4/10/13 3:36 PM, Richard Fuchs wrote:
> -int db_mysql_free_result(db1_con_t* _h, db1_res_t* _r);
> +int db_mysql_free_result(const db1_con_t* _h, db1_res_t* _r);
the change to the prototype of the above function is now throwing 
compilation warning:

km_db_mysql.c: In function ‘db_mysql_bind_api’:
km_db_mysql.c:109: warning: assignment from incompatible pointer type

Do you need the const specifier? If yes, the DB API and probably the 
other database drivers need to be updated.

Cheers,
Daniel

-- 
Daniel-Constantin Mierla - http://www.asipto.com
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
Kamailio Advanced Training, San Francisco, USA - June 24016, 2013
   * http://asipto.com/u/katu *




More information about the sr-dev mailing list