summaryrefslogtreecommitdiff
path: root/src/chown.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/chown.c')
-rw-r--r--src/chown.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/chown.c b/src/chown.c
index e5740d259..972b281af 100644
--- a/src/chown.c
+++ b/src/chown.c
@@ -312,7 +312,7 @@ main (int argc, char **argv)
empty string so that diagnostics say "ownership :GROUP"
rather than "group GROUP". */
if (!chopt.user_name && chopt.group_name)
- chopt.user_name = "";
+ chopt.user_name = bad_cast ("");
optind++;
}