]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-7294: Enable -Werror when building with clang compiler
authorMichael Jerris <mike@jerris.com>
Tue, 17 Feb 2015 21:23:53 +0000 (16:23 -0500)
committerMichael Jerris <mike@jerris.com>
Tue, 17 Feb 2015 21:23:53 +0000 (16:23 -0500)
libs/esl/fs_cli.c

index dbf57c9c15523a40cbc9b1a2e29be397d69eef69..32fb77111c21df97d8db40a4f72a02dce5ecbeea 100644 (file)
@@ -1205,7 +1205,7 @@ struct color_map_el color_map[] = {
 
 static const char* match_color(const char *s) {
        struct color_map_el *map = color_map;
-       while (map->name) {
+       while (*map->name) {
                if (!(strcasecmp(s, map->name))) {
                        return map->seq;
                }