summaryrefslogtreecommitdiff
path: root/src/id.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/id.c')
-rw-r--r--src/id.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/id.c b/src/id.c
index 38844af70..218ee5a31 100644
--- a/src/id.c
+++ b/src/id.c
@@ -197,8 +197,10 @@ main (int argc, char **argv)
if (just_user + just_group + just_group_list + just_context > 1)
error (EXIT_FAILURE, 0, _("cannot print \"only\" of more than one choice"));
- bool default_format = (just_user + just_group + just_group_list
- + just_context == 0);
+ bool default_format = ! (just_user
+ || just_group
+ || just_group_list
+ || just_context);
if (default_format && (use_real || use_name))
error (EXIT_FAILURE, 0,