From 9b8cdcff482a518c24d31ce74524543bb7015102 Mon Sep 17 00:00:00 2001 From: NRK Date: Wed, 12 Jun 2024 21:34:11 +0000 Subject: some minor comment nitpick --- autoreload.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'autoreload.c') diff --git a/autoreload.c b/autoreload.c index 8325210..1a889dc 100644 --- a/autoreload.c +++ b/autoreload.c @@ -85,7 +85,7 @@ void arl_add(arl_t *arl, const char *filepath) add_watch(arl->fd, &arl->wd_file, filepath, IN_CLOSE_WRITE | IN_DELETE_SELF); base = strrchr(filepath, '/'); - assert(base != NULL); /* filepath must be result of `realpath(3)` */ + assert(base != NULL && "filepath must be result of realpath(3)"); dir = arl_scratch_push(filepath, MAX(base - filepath, 1)); add_watch(arl->fd, &arl->wd_dir, dir, IN_CREATE | IN_MOVED_TO); arl->filename = arl_scratch_push(base + 1, strlen(base + 1)); -- cgit v1.2.3-54-g00ecf