diff options
Diffstat (limited to 'options.c')
-rw-r--r-- | options.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -2,7 +2,7 @@ /* * rhctl * - * Copyright (C) 2009 Christian Pointner <equinox@spreadspace.org> + * Copyright (C) 2009-2013 Christian Pointner <equinox@helsinki.at> * * This file is part of rhctl. * @@ -120,9 +120,9 @@ int options_parse_hex_string(const char* hex, buffer_t* buffer) if(hex_len%2) return 1; - if(buffer->buf_) + if(buffer->buf_) free(buffer->buf_); - + buffer->length_ = hex_len/2; buffer->buf_ = malloc(buffer->length_); if(!buffer->buf_) { @@ -201,7 +201,7 @@ int options_parse(options_t* opt, int argc, char* argv[]) #ifdef OPT_LUACLIENT PARSE_STRING_PARAM("-f","--lua-file", opt->lua_file_) #endif - else + else return i; } |