From 6b27851a012ce270cabc69c5e162ef2991e66065 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jean-Baptiste=20Herv=C3=A9?= Date: Thu, 2 Aug 2012 17:59:24 +0200 Subject: [PATCH 1/1] Check if "coord" is not null before do strcmp --- src/surf/surf_routing.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/surf/surf_routing.c b/src/surf/surf_routing.c index 098651b231..1049787e34 100644 --- a/src/surf/surf_routing.c +++ b/src/surf/surf_routing.c @@ -206,7 +206,7 @@ static void parse_S_router(sg_platf_router_cbarg_t router) xbt_lib_set(as_router_lib, router->id, ROUTING_ASR_LEVEL, (void *) info); XBT_DEBUG("Having set name '%s' id '%d'",router->id,info->id); - if (strcmp(router->coord, "")) { + if (router->coord && strcmp(router->coord, "")) { unsigned int cursor; char*str; -- 2.20.1