]> andersk Git - moira.git/commitdiff
from dongq: initial all elements of args[] to NULL
authorzacheiss <zacheiss>
Wed, 22 Mar 2000 21:20:58 +0000 (21:20 +0000)
committerzacheiss <zacheiss>
Wed, 22 Mar 2000 21:20:58 +0000 (21:20 +0000)
clients/moira/user.c

index 56a42d4184340c2a92cbf110a8676cb779758dd0..827544d746c0d0b39ca9bfb33937f10d827cc2bb 100644 (file)
@@ -558,6 +558,10 @@ int RegisterUser(int argc, char **argv)
   char temp_buf[BUFSIZ];
   int status;
 
+  int i;
+  for (i = 0; i < MAX_ARGS_SIZE; i++)
+         args[i] = NULL;
+
   Put_message("This function has NO kerberos support, so strange things");
   Put_message("may happen if you use it to register a user.");
 
This page took 0.041818 seconds and 5 git commands to generate.