aboutsummaryrefslogtreecommitdiff
path: root/src/database_interaction.c
diff options
context:
space:
mode:
authorThorsten Töpper <atsutane@freethoughts.de>2026-03-01 21:26:38 +0100
committerThorsten Töpper <atsutane@freethoughts.de>2026-03-01 21:26:38 +0100
commit29b439c85aef85a1f0e6f7e7b254e6065f241e97 (patch)
tree3bf66085ed6bd72d234ee550946998221047283c /src/database_interaction.c
parentb551c441e10c94ccfe188d9bcc783efe78cd5083 (diff)
downloadduplicate_finder-29b439c85aef85a1f0e6f7e7b254e6065f241e97.tar.gz
duplicate_finder-29b439c85aef85a1f0e6f7e7b254e6065f241e97.tar.bz2
dbI_fill_fileinfo: stay silent if not found.
Diffstat (limited to 'src/database_interaction.c')
-rw-r--r--src/database_interaction.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/database_interaction.c b/src/database_interaction.c
index 9e29c17..6f781aa 100644
--- a/src/database_interaction.c
+++ b/src/database_interaction.c
@@ -943,9 +943,9 @@ int dbi_fill_fileinfo(struct df_fileinfo *fi) {
fname_id = dbi_select_filename_by_name(fi->name);
pname_id = dbi_select_path_by_pathname(fi->path);
- /* Any problems with the selects? */
- if (fname_id <0 || pname_id <0) {
- DBGTRC("ERROR: abort due to previous error.\n");
+ /* Any problems with the selects? */
+ if (fname_id <=0 || pname_id <=0) {
+ DBGTRC("ERROR: abort due to previous error or not found.\n");
return -1;
}