Commit 1620a2b80faee81e32590c5880607d3aba5f2c14

Stefan Sperling 2020-02-13T10:15:49

add XXX comment to code that seems... off...

1
2
3
4
5
6
7
8
9
10
11
12
diff --git a/gotweb/gotweb.c b/gotweb/gotweb.c
index 09a88f6..cd3c2c7 100644
--- a/gotweb/gotweb.c
+++ b/gotweb/gotweb.c
@@ -309,6 +309,7 @@ static const struct got_error *
 gw_strdup_string(char **s, char *str1, const char *str2)
 {
 	if (str1 && str2)
+		/* XXX and what is the value of errno ?!? */
 		return got_error_from_errno("strdup");
 	if (str1)
 		*s = strdup(str1);