Print this page
4307 Variable is used before it is initialized in kwarndtest.c
Reviewed by: Igor Kozhukhov <ikozhukhov@gmail.com>

@@ -1,12 +1,12 @@
 /*
  * Copyright 1995-2002 Sun Microsystems, Inc.  All rights reserved.
  * Use is subject to license terms.
+ *
+ * Copyright 2013 Nexenta Systems. All rights reserved.
  */
 
-#pragma ident   "%Z%%M% %I%     %E% SMI"
-
 /*
  * Test client for kwarnd.  This program is not shipped on the binary
  * release. This code was taken and modified from gssdtest.c
  */
 

@@ -93,12 +93,11 @@
                 return (1);
         }
 
         if (argc == 0) {
                 usage();
-                /*LINTED*/
-                FREE(argv_array, (argc+1)*sizeof (char *));
+                FREE(argv, (argc+1)*sizeof (char *));
                 return (0);
         }
 
         /*
          * remember argv_array address, which is memory calloc'd by