diff options
author | Sree Harsha Totakura <totakura@in.tum.de> | 2012-09-02 11:17:10 +0000 |
---|---|---|
committer | Sree Harsha Totakura <totakura@in.tum.de> | 2012-09-02 11:17:10 +0000 |
commit | c9c4ef49195c329851ea68471ccddee6bdff82b4 (patch) | |
tree | 84267532c7eee8e1e73635a1a34941adf8df1a23 /src/testbed/testbed_api_testbed.c | |
parent | 982b6993330bf9fb1323ff5e24577f8836df8dd4 (diff) | |
download | gnunet-c9c4ef49195c329851ea68471ccddee6bdff82b4.tar.gz gnunet-c9c4ef49195c329851ea68471ccddee6bdff82b4.zip |
input checks
Diffstat (limited to 'src/testbed/testbed_api_testbed.c')
-rw-r--r-- | src/testbed/testbed_api_testbed.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/testbed/testbed_api_testbed.c b/src/testbed/testbed_api_testbed.c index 6fa5d6dd4..6e6145aaa 100644 --- a/src/testbed/testbed_api_testbed.c +++ b/src/testbed/testbed_api_testbed.c | |||
@@ -483,11 +483,12 @@ GNUNET_TESTBED_run (const char *host_filename, | |||
483 | { | 483 | { |
484 | struct RunContext *rc; | 484 | struct RunContext *rc; |
485 | 485 | ||
486 | rc = GNUNET_malloc (sizeof (struct RunContext)); | ||
487 | GNUNET_break (NULL == host_filename); /* Currently we do not support host | 486 | GNUNET_break (NULL == host_filename); /* Currently we do not support host |
488 | * files */ | 487 | * files */ |
489 | GNUNET_assert (NULL != cc); | 488 | GNUNET_assert (NULL != cc); |
489 | GNUNET_assert (num_peers > 0); | ||
490 | host_filename = NULL; | 490 | host_filename = NULL; |
491 | rc = GNUNET_malloc (sizeof (struct RunContext)); | ||
491 | rc->h = GNUNET_TESTBED_host_create (NULL, NULL, 0); | 492 | rc->h = GNUNET_TESTBED_host_create (NULL, NULL, 0); |
492 | GNUNET_assert (NULL != rc->h); | 493 | GNUNET_assert (NULL != rc->h); |
493 | rc->cproc = | 494 | rc->cproc = |