Removed missing parantheses warning 95/32495/1
authorAnkur <ankur29.garg@samsung.com>
Thu, 18 Dec 2014 14:28:08 +0000 (19:58 +0530)
committerAnkur <ankur29.garg@samsung.com>
Thu, 18 Dec 2014 14:28:17 +0000 (19:58 +0530)
-Added missing parantheses arounf an assignment in a condition.
-Removed Missing Parantheses Warning.

Change-Id: Ib7814ef31a911896e868b11cfc057284573bee7a

src/shared/sensor_plugin_loader.cpp

index 09f6711..8aa70d1 100755 (executable)
@@ -227,7 +227,7 @@ bool sensor_plugin_loader::get_paths_from_dir(const string &dir_path, vector<str
 
        string name;
 
-       while (dir_entry = readdir(dir)) {
+       while ((dir_entry = readdir(dir))) {
                name = string(dir_entry->d_name);
 
                if (equal(PLUGIN_POSTFIX.rbegin(), PLUGIN_POSTFIX.rend(), name.rbegin())) {