summaryrefslogtreecommitdiffstats
path: root/src/profile-manager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/profile-manager.cpp')
-rw-r--r--src/profile-manager.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/profile-manager.cpp b/src/profile-manager.cpp
index e2a3e736d..90b124195 100644
--- a/src/profile-manager.cpp
+++ b/src/profile-manager.cpp
@@ -78,7 +78,7 @@ ColorProfile* ProfileManager::find(gchar const* name)
for ( unsigned int index = 0; index < howMany; index++ ) {
SPObject *obj = nthChildOf(NULL, index);
ColorProfile* prof = reinterpret_cast<ColorProfile*>(obj);
- if ( prof && prof->name && !strcmp(name, prof->name) ) {
+ if (prof && (prof->name && !strcmp(name, prof->name))) {
match = prof;
break;
}