comparing strings to random locations in memory is probably not what we wanted to do

This commit is contained in:
Mikael Magnusson 2007-03-13 12:34:58 +00:00
parent a9910e520b
commit 53109b7592

View file

@ -639,7 +639,7 @@ static ObAppSettings *client_get_settings_state(ObClient *self)
GSList *it; GSList *it;
for (it = config_per_app_settings; it; it = g_slist_next(it)) { for (it = config_per_app_settings; it; it = g_slist_next(it)) {
ObAppSettings *app; ObAppSettings *app = it->data;
if ((app->name && !app->class && !strcmp(app->name, self->name)) if ((app->name && !app->class && !strcmp(app->name, self->name))
|| (app->class && !app->name && !strcmp(app->class, self->class)) || (app->class && !app->name && !strcmp(app->class, self->class))