commit d129bc11da6456e7dc52eb6464d3e0e56f1b7309 parent bd9cbd96f1cfd75b430bd5144f3f521a3acbe139 Author: aabacchus <ben@bvnf.space> Date: Tue, 14 Sep 2021 19:26:53 +0100 cat: initialise return_value Diffstat:
M | src/cat.c | | | 2 | +- |
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/cat.c b/src/cat.c @@ -37,7 +37,7 @@ cat(int fd, const char *filename) int main(int argc, char *argv[]) { - int return_value; + int return_value = 0; getopt(argc, argv, "u"); if(argc == optind) return_value = cat(0, "-");