diary

Text-based journaling program
git clone https://git.in0rdr.ch/diary.git
Log | Files | Refs | README | LICENSE

commit 2bfdc724fb0244180b8186f230af8c502b3ac7a8
parent 03aea76dcb16567e8c026c7842b50942c645476d
Author: in0rdr <andreas.gruhler@uzh.ch>
Date:   Wed, 23 Nov 2016 17:09:37 +0800

Merge commit '015c8f543dc3fd162f06'

of @ryanbahneman into feature/highlight.
Fix errno comparison.

Diffstat:
Mdiary.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/diary.c b/diary.c @@ -180,7 +180,7 @@ int main(int argc, char** argv) { if (diary_dir_ptr) { // Directory exists, continue closedir(diary_dir_ptr); - } else if (errno = ENOENT) { + } else if (errno == ENOENT) { fprintf(stderr, "The directory '%s' does not exist\n", diary_dir); return 2; } else {