diff --git a/src/accel-location.c b/src/accel-location.c index e2a618c..7fbb748 100644 --- a/src/accel-location.c +++ b/src/accel-location.c @@ -35,15 +35,15 @@ parse_accel_location (const char *location, AccelLocation *value) { /* Empty string means we use the display location */ if (location == NULL || - *location == '\0' || - (g_strcmp0 (location, "display") == 0)) { + *location == '\0' || + g_str_equal (location, "display")) { *value = ACCEL_LOCATION_DISPLAY; return TRUE; - } else if (g_strcmp0 (location, "base") == 0) { + } else if (g_str_equal (location, "base")) { *value = ACCEL_LOCATION_BASE; return TRUE; } else { g_warning ("Failed to parse '%s' as a location", location); return FALSE; } -} \ No newline at end of file +}