diff --git a/src/home/homectl.c b/src/home/homectl.c index d1cc8146b6a..741e5d72b7a 100644 --- a/src/home/homectl.c +++ b/src/home/homectl.c @@ -214,7 +214,7 @@ static int list_homes(int argc, char *argv[], void *userdata) { return r; } - if (arg_legend && !FLAGS_SET(arg_json_format_flags, SD_JSON_FORMAT_OFF)) { + if (arg_legend && FLAGS_SET(arg_json_format_flags, SD_JSON_FORMAT_OFF)) { if (table_isempty(table)) printf("No home areas.\n"); else