aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/hotload.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/hotload.c b/src/hotload.c
index 4f24f15..6610609 100644
--- a/src/hotload.c
+++ b/src/hotload.c
@@ -193,7 +193,7 @@ bool hotloader_begin(struct hotloader *hotloader, hotloader_callback *callback)
CFStringRef string_refs[hotloader->watch_count];
for (unsigned index = 0; index < hotloader->watch_count; ++index) {
- struct watched_entry *watch_info = hotloader->watch_list + watch_index;
+ struct watched_entry *watch_info = hotloader->watch_list + index;
char *directory = watch_info->kind == WATCH_KIND_FILE
? watch_info->file_info.directory
: watch_info->catalog_info.directory;