From c5ed4e5cdf2fd215e88a607062e3f03187c090af Mon Sep 17 00:00:00 2001 From: ridiculousfish Date: Sun, 3 Jan 2016 12:12:42 -0800 Subject: [PATCH] Pass a struct stat by const reference instead of by value --- src/wildcard.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wildcard.cpp b/src/wildcard.cpp index 54c90e984..664eeb5b0 100644 --- a/src/wildcard.cpp +++ b/src/wildcard.cpp @@ -448,7 +448,7 @@ static wcstring file_get_desc(const wcstring &filename, int lstat_res, const struct stat &lbuf, int stat_res, - struct stat buf, + const struct stat &buf, int err) {