commit 99c5a46c68bd605c03d4e3a86811831ed7dd3d37 Author: Vincent van Ravesteijn <v...@lyx.org> Date: Wed Mar 19 21:08:43 2014 +0100
Fix comparing a pointer with a char Fixes: #8985. diff --git a/src/insets/InsetListings.cpp b/src/insets/InsetListings.cpp index 32211bb..3ed00d4 100644 --- a/src/insets/InsetListings.cpp +++ b/src/insets/InsetListings.cpp @@ -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? !!!