diff options
Diffstat (limited to 'src/profile-manager.cpp')
| -rw-r--r-- | src/profile-manager.cpp | 2 |
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; } |
