summary refs log tree commit diff
path: root/nq.c
diff options
context:
space:
mode:
Diffstat (limited to 'nq.c')
-rw-r--r--nq.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/nq.c b/nq.c
index 9ef1955..151ce6b 100644
--- a/nq.c
+++ b/nq.c
@@ -169,7 +169,7 @@ usage:
 
 	char *donepath = getenv("NQDONEDIR");
 	if (donepath) {
-		if (mkdir(path, 0777) < 0) {
+		if (mkdir(donepath, 0777) < 0) {
 			if (errno != EEXIST) {
 				perror("mkdir $NQDONEDIR");
 				exit(111);