Skip to content

Commit

Permalink
Initialize sql string
Browse files Browse the repository at this point in the history
  • Loading branch information
Mr-Dave committed Nov 16, 2024
1 parent 94fccab commit f5e83dc
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/dbse.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1210,14 +1210,15 @@ void cls_dbse::dbse_clean()
filelist_get(sql, flst);

delcnt = 0;
sql = "";
for (indx=0;indx<flst.size();indx++) {
if (check_exit() == true) {
return;
}
if (stat(flst[indx].full_nm.c_str(), &statbuf) != 0) {
if (sql == "") {
sql = " delete from motionplus "
" where record_id in (";
sql = " delete from motionplus ";
sql += " where record_id in (";
delimit = " ";
delcnt = 0;
}
Expand Down

0 comments on commit f5e83dc

Please sign in to comment.