From 6d432bfafbc9f6a93c539705e020be950a24ab95 Mon Sep 17 00:00:00 2001 From: codestation Date: Sun, 15 Sep 2013 23:56:37 -0430 Subject: [PATCH] Initialize file_type. --- database.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/database.cpp b/database.cpp index 1233a25..93e64d6 100644 --- a/database.cpp +++ b/database.cpp @@ -157,7 +157,7 @@ CMAObject *Database::getParent(CMAObject *last_dir, const QString ¤t_path) int Database::scanRootDirectory(root_list &list, int ohfi_type) { - int file_type; + int file_type = -1; int total_objects = 0; CMAObject *last_dir = list.first(); QDir dir(last_dir->path); @@ -196,7 +196,7 @@ int Database::scanRootDirectory(root_list &list, int ohfi_type) int Database::recursiveScanRootDirectory(root_list &list, CMAObject *parent, int ohfi_type) { - int file_type; + int file_type = -1; int total_objects = 0; QDir dir(parent->path);