]> git.lyx.org Git - features.git/commitdiff
Fix comparing a pointer with a char
authorVincent van Ravesteijn <vfr@lyx.org>
Wed, 19 Mar 2014 20:08:43 +0000 (21:08 +0100)
committerVincent van Ravesteijn <vfr@lyx.org>
Wed, 19 Mar 2014 20:08:50 +0000 (21:08 +0100)
Fixes: #8985.
src/insets/InsetListings.cpp

index 32211bb0aac784aedcb4fc3055e934b9440c80f5..3ed00d4682ef242ccd54dfa77c98bc9da208249e 100644 (file)
@@ -203,7 +203,7 @@ void InsetListings::latex(otexstream & os, OutputParams const & runparams) const
        }
        if (isInline) {
                char const * delimiter = lstinline_delimiters;
-               for (; delimiter != '\0'; ++delimiter)
+               for (; *delimiter != '\0'; ++delimiter)
                        if (!contains(code, *delimiter))
                                break;
                // This code piece contains all possible special character? !!!