]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
bus-util: fix error handling
authorYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 25 Jun 2018 04:08:02 +0000 (13:08 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 25 Jun 2018 04:08:02 +0000 (13:08 +0900)
src/shared/bus-util.c

index a4f2deba31ed4edfda4df7058f7475e0f031eb7b..09e126d7f2aed0a2ce9df18a805d8aeac7a5f120 100644 (file)
@@ -937,7 +937,7 @@ int bus_message_print_all_properties(
                                 return log_oom();
 
                         r = set_put(*found_properties, name);
-                        if (r < 0 && r != EEXIST)
+                        if (r < 0 && r != -EEXIST)
                                 return log_oom();
                 }