Commit dab49ca6 authored by Oliver Heidmann's avatar Oliver Heidmann
Browse files

replced allocation of argument_t in new_argument() and new_file_argument with new argument_t()

parent 3befdbec
......@@ -10,7 +10,7 @@
argument_t *file_argument_new(const char *filename)
{
argument_t *argument = (argument_t*) Calloc(1, sizeof(argument_t));
argument_t *argument = new argument_t();
argument->argc = 1;
argument->argv = (char **) Calloc(1, sizeof(char *));
......@@ -35,7 +35,7 @@ void file_argument_free(argument_t *argument)
argument_t *argument_new(size_t argc, size_t len)
{
argument_t *argument = (argument_t*) Calloc(1, sizeof(argument_t));
argument_t *argument = new argument_t();
if ( argc > 0 )
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment