diff options
Diffstat (limited to 'src/database_interaction.c')
| -rw-r--r-- | src/database_interaction.c | 6 |
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; } |
