From 1396619fb0ba0d9148af512e0313ea17ac15beac Mon Sep 17 00:00:00 2001 From: Mika Laitio Date: Fri, 29 Oct 2010 00:35:58 +0300 Subject: [PATCH] version 0.1.0 --- configure.ac | 2 +- src/process_parser.c | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/configure.ac b/configure.ac index 6ea030e..ef0e626 100644 --- a/configure.ac +++ b/configure.ac @@ -3,7 +3,7 @@ AM_CONFIG_HEADER(config.h) AC_CONFIG_MACRO_DIR([m4]) PACKAGE=libplpha -VERSION=1.0.0 +VERSION=0.1.0 CFLAGS="$CFLAGS -g -Wall -Werror" LDFLAGS="$LDFLAGS -lpthread" diff --git a/src/process_parser.c b/src/process_parser.c index dcc4af8..e4e4539 100644 --- a/src/process_parser.c +++ b/src/process_parser.c @@ -36,8 +36,8 @@ t_process_arg_list *parse_command_line_args(char *cmd_line_param) { else { char **arg_arr; - arg_arr = ret_val->arg_arr; - arg_arr = realloc(arg_arr, (ret_val->count + 1) * sizeof(char *)); + arg_arr = ret_val->arg_arr; + arg_arr = realloc(arg_arr, (ret_val->count + 1) * sizeof(char *)); ret_val->arg_arr = arg_arr; } start = line_pointer; @@ -49,16 +49,16 @@ t_process_arg_list *parse_command_line_args(char *cmd_line_param) { } ret_val->arg_arr[ret_val->count] = strndup(start, len); log_debug("ret_val[%d] = %s\n", ret_val->count, ret_val->arg_arr[ret_val->count]); - ret_val->count = ret_val->count + 1; + ret_val->count = ret_val->count + 1; } else { break; } } // terminate list with null - ret_val->arg_arr = realloc(ret_val->arg_arr, (ret_val->count + 1) * sizeof(char *)); + ret_val->arg_arr = realloc(ret_val->arg_arr, (ret_val->count + 1) * sizeof(char *)); ret_val->arg_arr[ret_val->count] = NULL; - ret_val->count = ret_val->count + 1; + ret_val->count = ret_val->count + 1; } return ret_val; } -- 2.41.1