src/utils_db_query.c: Correctly handle return value of strjoin().