mirror of
https://github.com/Motion-Project/motion.git
synced 2026-04-19 05:26:59 -04:00
Fix warning of not used variable
This commit is contained in:
4
event.c
4
event.c
@@ -122,14 +122,14 @@ static void event_sqlnewfile(struct context *cnt, int type ATTRIBUTE_UNUSED,
|
||||
*/
|
||||
{
|
||||
char sqlquery[PATH_MAX];
|
||||
int ret;
|
||||
|
||||
mystrftime(cnt, sqlquery, sizeof(sqlquery), cnt->conf.sql_query,
|
||||
&cnt->current_image->timestamp_tm, filename, sqltype);
|
||||
|
||||
|
||||
#ifdef HAVE_MYSQL
|
||||
if (cnt->conf.mysql_db) {
|
||||
int ret;
|
||||
|
||||
ret = mysql_query(cnt->database, sqlquery);
|
||||
|
||||
if (ret != 0) {
|
||||
|
||||
Reference in New Issue
Block a user