1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-03 13:47:25 +03:00

r13618: fix compiler warning

metze
This commit is contained in:
Stefan Metzmacher 2006-02-22 09:48:35 +00:00 committed by Gerald (Jerry) Carter
parent 082f418fab
commit 252d5edfb5

View File

@ -86,7 +86,7 @@ static void popt_common_credentials_callback(poptContext con,
case OPT_PASSWORD:
cli_credentials_set_password(cmdline_credentials, arg, CRED_SPECIFIED);
/* Try to prevent this showing up in ps */
memset(arg,0,strlen(arg));
memset(discard_const(arg),0,strlen(arg));
break;
case 'A':