From 09d83c564b0dde7a174d776b99972faa2dfb39a3 Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Fri, 9 Sep 2005 21:34:59 +0000 Subject: [PATCH] Add missing arg to windows tor_listdir() svn:r4972 --- src/common/util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/util.c b/src/common/util.c index 821bfc8213..446a5702d0 100644 --- a/src/common/util.c +++ b/src/common/util.c @@ -1139,7 +1139,7 @@ tor_listdir(const char *dirname) } result = smartlist_create(); while (1) { - smartlist_add(findData.cFileName); + smartlist_add(result, findData.cFileName); if (!FindNextFile(handle, &findData)) { if (GetLastError() != ERROR_NO_MORE_FILES) { log_fn(LOG_WARN, "Error reading directory.");