chiark / gitweb /
bootctl: print Options only when found
[elogind.git] / src / boot / boot-loader.c
index d1a8b0320b511eec322891df7b03aa39fc0929a2..d44fdb3aef652f1a03cb8a9d0186ccb0a2509851 100644 (file)
@@ -121,7 +121,7 @@ int boot_loader_find_active_entry(struct boot_info *info, const char *loader_act
                 return -ENOMEM;
 
         for (i = 0; i < info->loader_entries_count; i++) {
-                if (strcmp(fn, info->loader_entries[i].path) == 0) {
+                if (streq(fn, info->loader_entries[i].path)) {
                         info->loader_entry_active = i;
                         break;
                 }