* Fix bug from the previous checkin.

This commit is contained in:
Justin Maggard 2009-11-02 19:47:57 +00:00
parent 58ecfd6380
commit 6738b8a722

View File

@ -532,7 +532,7 @@ inotify_remove_file(const char * path)
sql_exec(db, sql);
*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);
asprintf(&sql, "DELETE from DETAILS where ID ="