summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicholas Hughart <mekius@mekius.net>2008-10-26 23:27:28 +0000
committerNicholas Hughart <mekius@mekius.net>2008-10-26 23:27:28 +0000
commit553db0c3ce0eb683725004cb8655f08244c7d3eb (patch)
tree14ba5f821085cb0accc6e06c1cbeccdfc0997206
parent2a7a0c41da8125569cca0c6e775772edccfd7f84 (diff)
downloadlibast-553db0c3ce0eb683725004cb8655f08244c7d3eb.tar.gz
Fix a bug in perf test. Don't delete strings in use :)
SVN revision: 37185
-rw-r--r--test/perf.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/test/perf.c b/test/perf.c
index 55091e8..038dcd0 100644
--- a/test/perf.c
+++ b/test/perf.c
@@ -412,7 +412,7 @@ perf_options(void)
char *display = NULL, *name = NULL, *theme = NULL, **exec = NULL, **foo = NULL;
long color = 0;
spif_uint32_t options = 0;
- static void handle_theme(char *val_ptr) {theme = STRDUP(val_ptr);}
+ void handle_theme(char *val_ptr) {theme = STRDUP(val_ptr);}
char *argv2[] = { "test", "-rt", "mytheme", "--name", "This is a name", "--exec=ssh foo@bar.com", "--scrollbar",
"--buttonbar", "no", "--login=0", "-mvd", "foo:0", "--color", "4", "--foo", "blah", "-d", "eatme", NULL };
int argc2 = 18;
@@ -654,7 +654,6 @@ perf_tok(void)
testtok = spif_tok_new_from_ptr(tmp2);
teststr = spif_str_new_from_ptr(":");
spif_tok_set_sep(testtok, teststr);
- spif_str_del(teststr);
PERF_TEST(spif_tok_eval(testtok););
spif_tok_del(testtok);