* Fix bug from the previous checkin.
This commit is contained in:
parent
58ecfd6380
commit
6738b8a722
@ -532,7 +532,7 @@ inotify_remove_file(const char * path)
|
|||||||
sql_exec(db, sql);
|
sql_exec(db, sql);
|
||||||
|
|
||||||
*rindex(result[i], '$') = '\0';
|
*rindex(result[i], '$') = '\0';
|
||||||
if( sql_get_int_field("SELECT count(*) from OBJECTS where PARENT_ID = '%s'", result[i]) == 0 )
|
if( sql_get_int_field(db, "SELECT count(*) from OBJECTS where PARENT_ID = '%s'", result[i]) == 0 )
|
||||||
{
|
{
|
||||||
free(sql);
|
free(sql);
|
||||||
asprintf(&sql, "DELETE from DETAILS where ID ="
|
asprintf(&sql, "DELETE from DETAILS where ID ="
|
||||||
|
Loading…
x
Reference in New Issue
Block a user