Browse code

Fix unit test: ctx.fmap can't be NULL.

Török Edvin authored on 2010/02/23 00:59:32
Showing 1 changed files
... ...
@@ -56,12 +56,15 @@ static const struct ac_testdata_s {
56 56
 
57 57
 
58 58
 static cli_ctx ctx;
59
+static fmap_t *thefmap = NULL;
59 60
 static const char *virname = NULL;
60 61
 static void setup(void)
61 62
 {
62 63
 	struct cli_matcher *root;
63 64
 	virname = NULL;
65
+	thefmap = NULL;
64 66
 	ctx.virname = &virname;
67
+	ctx.fmap = &thefmap;
65 68
 	ctx.engine = cl_engine_new();
66 69
 	fail_unless(!!ctx.engine, "cl_engine_new() failed");
67 70
 	root = (struct cli_matcher *) mpool_calloc(ctx.engine->mempool, 1, sizeof(struct cli_matcher));