From 4c56c89afc7974fdc25136236000273a9ab6a515 Mon Sep 17 00:00:00 2001 From: ridiculousfish Date: Sat, 21 Jan 2017 11:51:06 -0800 Subject: [PATCH] Use wcscmp instead of comparing against a string literal Should fix OpenSUSE build --- src/builtin.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/builtin.cpp b/src/builtin.cpp index 926f55442..fe04becf8 100644 --- a/src/builtin.cpp +++ b/src/builtin.cpp @@ -1065,7 +1065,7 @@ static int report_function_metadata(const wchar_t *funcname, bool verbose, io_st } if (metadata_as_comments) { - if (path != L"stdin") { + if (wcscmp(path, L"stdin")) { streams.out.append_format(L"# Defined in %ls @ line %d\n", path, line_number); } } else {