From ff73358b9c59844c7c25c08c701edab3a86fc06b Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Thu, 14 Aug 2014 09:59:33 +0200 Subject: [PATCH] Some tiny errors that slipped through Visual Studio's warnings. --- s/runtests | 1 - src/creport.c | 2 -- src/kernel/order.h | 1 - 3 files changed, 4 deletions(-) diff --git a/s/runtests b/s/runtests index 8a97f1060..b443476d3 100755 --- a/s/runtests +++ b/s/runtests @@ -18,5 +18,4 @@ fi $ROOT/$BIN_DIR/eressea/test_eressea cd $ROOT $ROOT/$BIN_DIR/eressea/eressea -v0 scripts/run-tests.lua -#grep ERROR eressea.log cd $OLDWPD diff --git a/src/creport.c b/src/creport.c index ab56ea196..c7beebc80 100644 --- a/src/creport.c +++ b/src/creport.c @@ -391,8 +391,6 @@ static int cr_order(variant var, char *buffer, const void *userdata) } *wp++ = '\"'; *wp++ = 0; - - free(cmd); } else strcpy(buffer, "\"\""); diff --git a/src/kernel/order.h b/src/kernel/order.h index c56e5ca82..8536dfc7b 100644 --- a/src/kernel/order.h +++ b/src/kernel/order.h @@ -52,7 +52,6 @@ extern "C" { /* access functions for orders */ keyword_t getkeyword(const order * ord); void set_order(order ** destp, order * src); - char *getcommand(const order * ord); char* get_command(const order *ord, char *buffer, size_t size); bool is_persistent(const order * ord); bool is_exclusive(const order * ord);