summaryrefslogtreecommitdiff
path: root/src/db/DatabaseTable.vala
diff options
context:
space:
mode:
Diffstat (limited to 'src/db/DatabaseTable.vala')
-rw-r--r--src/db/DatabaseTable.vala2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/db/DatabaseTable.vala b/src/db/DatabaseTable.vala
index 4fc8853..5ec5be1 100644
--- a/src/db/DatabaseTable.vala
+++ b/src/db/DatabaseTable.vala
@@ -53,7 +53,7 @@ public abstract class DatabaseTable {
unowned string? sql_debug = Environment.get_variable
("SHOTWELL_SQL_DEBUG");
- if (sql_debug != "") {
+ if (sql_debug != null && sql_debug != "") {
db.trace (on_trace);
}
}