From: Florian Forster Date: Wed, 7 Jul 2010 14:12:54 +0000 (+0200) Subject: src/graph_list.c: Fix "gl_compare_hosts". X-Git-Tag: v4.0.0~129 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=721000defaa6fa0b5e27bbf80d0896798368ef98;p=collection4.git src/graph_list.c: Fix "gl_compare_hosts". --- diff --git a/src/graph_list.c b/src/graph_list.c index 60ac94f..f5cb2e9 100644 --- a/src/graph_list.c +++ b/src/graph_list.c @@ -158,7 +158,7 @@ static int gl_clear_hosts (void) /* {{{ */ static int gl_compare_hosts (const void *v0, const void *v1) /* {{{ */ { - return (strcmp (v0, v1)); + return (strcmp (*(char * const *) v0, *(char * const *) v1)); } /* }}} int gl_compare_hosts */ static int gl_register_file (const graph_ident_t *file, /* {{{ */