aboutsummaryrefslogtreecommitdiffhomepage
path: root/common.h
diff options
context:
space:
mode:
authorGravatar Daniel J. Hofmann <daniel@trvx.org>2014-03-07 18:20:42 +0100
committerGravatar Daniel J. Hofmann <daniel@trvx.org>2014-03-07 18:28:16 +0100
commit7dc0b6f40be172915783e26cd77e86cbdb7ddaba (patch)
treeef46bac818615f9d911eb72c1bced92f00194ffe /common.h
parent79d14521db4c71250109785b8317aeceecd539c9 (diff)
Fixed various Undefined Behavior occurrences.
Conditionally uninitialized: - builtin_commandline.cpp:577 - expand.cpp:869 - parse_util.cpp:1036 Initialization of POD structs: - event.cpp:61 - autoload.cpp:22 References used with va_start: - common.cpp:608:18 Found with clang-3.4's awesome -Wconditional-uninitialized, -Wmissing-field-initializers and -Wvarargs.
Diffstat (limited to 'common.h')
-rw-r--r--common.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/common.h b/common.h
index 33fbb0e5..e5573fa7 100644
--- a/common.h
+++ b/common.h
@@ -689,7 +689,7 @@ wcstring wsetlocale(int category, const wchar_t *locale);
\return zero if needle is not found, of if needle is null, non-zero otherwise
*/
__sentinel bool contains_internal(const wchar_t *needle, ...);
-__sentinel bool contains_internal(const wcstring &needle, ...);
+__sentinel bool contains_internal(const wcstring needle, ...);
/**
Call read while blocking the SIGCHLD signal. Should only be called