From e733f949448e1cf9fa27e8b618c56a0e4badc1af Mon Sep 17 00:00:00 2001 From: "Andrew J. Schorr" Date: Thu, 7 Jun 2007 13:11:58 +0000 Subject: [ospf6d] Fix silly bug: muse use strcmp to compare strings 2007-06-07 Pavol Rusnak * ospf6_lsa.c: (no_debug_ospf6_lsa_hex_cmd) Fix bug: must use strcmp to compare strings. --- ospf6d/ospf6_lsa.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ospf6d/ospf6_lsa.c') diff --git a/ospf6d/ospf6_lsa.c b/ospf6d/ospf6_lsa.c index d555c3bd..e57384b3 100644 --- a/ospf6d/ospf6_lsa.c +++ b/ospf6d/ospf6_lsa.c @@ -855,7 +855,7 @@ DEFUN (no_debug_ospf6_lsa_type, UNSET_FLAG (handler->debug, OSPF6_LSA_DEBUG); if (handler->debug == 0 && - handler->name == "Unknown" && type != OSPF6_LSTYPE_UNKNOWN) + !strcmp(handler->name, "Unknown") && type != OSPF6_LSTYPE_UNKNOWN) { free (handler); vector_slot (ospf6_lsa_handler_vector, i) = NULL; -- cgit v1.2.1