]> diplodocus.org Git - nmh/blobdiff - sbr/arglist.c
new.c: Order two return statements to match comment.
[nmh] / sbr / arglist.c
index cd88b86b54d64cc5e383320d1226c6b845b757c5..59d311b210d1b1a8ade66885bfccb2554fb26ffe 100644 (file)
@@ -50,7 +50,7 @@ argsplit(char *command, char **file, int *argp)
        }
     }
 
-    argvarray = (char **) mh_xmalloc((sizeof(char **) * (MAXARGS + 5)));
+    argvarray = (char **)mh_xmalloc(sizeof *argvarray * (MAXARGS + 5));
 
     /*
      * The simple case - no spaces or shell metacharacters
@@ -131,7 +131,7 @@ arglist_free(char *command, char **argvarray)
 {
     int i;
 
-    mh_xfree(command);
+    free(command);
 
     if (argvarray != NULL) {
        for (i = 0; argvarray[i] != NULL; i++)