useless malloc removed

This commit is contained in:
karchnu 2015-12-04 09:06:03 +01:00
parent 907b78afaa
commit 808ea78cea

View File

@ -160,7 +160,7 @@ get_tok_to_humanize (char *s, struct fields *f)
int
main (int argc, char *argv[])
{
char *strtmp = malloc(BUFSIZ);
char strtmp[BUFSIZ];
char *delim = NULL; // options
struct fields fields;
@ -188,8 +188,6 @@ main (int argc, char *argv[])
printf("\n");
}
free(strtmp);
free(fields.fields);
if(argc == 2)