Commit e9a8bbf79f32b4588ad7fdbec759d48b70af68bf

Tracey Emery 2020-05-29T13:47:04

fix from Martin Vahlensieck to return error instead of NULL (thank you) ok tracey stsp

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/gotweb/gotweb.c b/gotweb/gotweb.c
index ecbcccb..1bfc514 100644
--- a/gotweb/gotweb.c
+++ b/gotweb/gotweb.c
@@ -2099,7 +2099,7 @@ gw_init_gw_dir(struct gw_dir **gw_dir, const char *dir)
 		error = got_error_from_errno("asprintf");
 		free(*gw_dir);
 		*gw_dir = NULL;
-		return NULL;
+		return error;
 	}
 
 	return NULL;