aboutsummaryrefslogtreecommitdiff
path: root/gdbsupport/common-inferior.cc
diff options
context:
space:
mode:
Diffstat (limited to 'gdbsupport/common-inferior.cc')
-rw-r--r--gdbsupport/common-inferior.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdbsupport/common-inferior.cc b/gdbsupport/common-inferior.cc
index 4b86829..d2fd348 100644
--- a/gdbsupport/common-inferior.cc
+++ b/gdbsupport/common-inferior.cc
@@ -59,7 +59,7 @@ escape_characters (const char *arg, const char *special)
#ifdef __MINGW32__
bool quoted = false;
- if (strpbrk (argv[i], special))
+ if (strpbrk (arg, special) != nullptr)
{
quoted = true;
result += quote;