[lib] adapt checker print function to Ben's change
authorChristophe Varoqui <christophe.varoqui@free.fr>
Tue, 13 May 2008 22:41:32 +0000 (00:41 +0200)
committerChristophe Varoqui <christophe.varoqui@free.fr>
Tue, 13 May 2008 22:41:32 +0000 (00:41 +0200)
libmultipath/dict.c

index c9edcc4..f976a84 100644 (file)
@@ -1408,7 +1408,8 @@ snprint_def_path_checker (char * buff, int len, void * data)
 {
        if (!conf->checker_name)
                return 0;
-       if (conf->checker_name == DEFAULT_CHECKER)
+       if (strlen(conf->checker_name) == strlen(DEFAULT_CHECKER) &&
+           !strcmp(conf->checker_name, DEFAULT_CHECKER))
                return 0;
        
        return snprintf(buff, len, "%s", conf->checker_name);