diff options
author | Christian Grothoff <christian@grothoff.org> | 2010-08-08 09:20:41 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2010-08-08 09:20:41 +0000 |
commit | 53ad591c48993023756180abc724622b17331acc (patch) | |
tree | 901335a297692ce083f327dbb236e73581c2e6e0 /src/fs/test_fs_unindex_persistence.c | |
parent | fc7c9cc1cb89c536961b330e1180de69f6eb3358 (diff) | |
download | gnunet-53ad591c48993023756180abc724622b17331acc.tar.gz gnunet-53ad591c48993023756180abc724622b17331acc.zip |
misc fixes
Diffstat (limited to 'src/fs/test_fs_unindex_persistence.c')
-rw-r--r-- | src/fs/test_fs_unindex_persistence.c | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/src/fs/test_fs_unindex_persistence.c b/src/fs/test_fs_unindex_persistence.c index 43d03fcb6..3483b7e09 100644 --- a/src/fs/test_fs_unindex_persistence.c +++ b/src/fs/test_fs_unindex_persistence.c | |||
@@ -84,11 +84,17 @@ static void | |||
84 | abort_unindex_task (void *cls, | 84 | abort_unindex_task (void *cls, |
85 | const struct GNUNET_SCHEDULER_TaskContext *tc) | 85 | const struct GNUNET_SCHEDULER_TaskContext *tc) |
86 | { | 86 | { |
87 | GNUNET_FS_unindex_stop (unindex); | 87 | if (unindex != NULL) |
88 | unindex = NULL; | 88 | { |
89 | GNUNET_DISK_directory_remove (fn); | 89 | GNUNET_FS_unindex_stop (unindex); |
90 | GNUNET_free (fn); | 90 | unindex = NULL; |
91 | fn = NULL; | 91 | } |
92 | if (fn != NULL) | ||
93 | { | ||
94 | GNUNET_DISK_directory_remove (fn); | ||
95 | GNUNET_free (fn); | ||
96 | fn = NULL; | ||
97 | } | ||
92 | } | 98 | } |
93 | 99 | ||
94 | 100 | ||