Commit 5cade90168b43ba473102fcb27dd1fd4d85fcdc9

Stefan Sperling 2019-09-22T10:34:44

fix error return in got_path_find_prog() (patch by Steven McDonald)

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/lib/path.c b/lib/path.c
index be17963..fefe29c 100644
--- a/lib/path.c
+++ b/lib/path.c
@@ -448,7 +448,7 @@ got_path_find_prog(char **filename, const char *prog)
 		continue;
 	}
 	free(path);
-	return NULL;
+	return err;
 }
 
 const struct got_error *