From c8d949733ada5f1672af615938f9adbfa74fade3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrien=20Gallou=C3=ABt?= Date: Fri, 27 Apr 2018 15:29:42 +0000 Subject: [PATCH] Code cleanup MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Adrien Gallouët --- mud.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/mud.c b/mud.c index 44d803c..d9ad998 100644 --- a/mud.c +++ b/mud.c @@ -343,10 +343,8 @@ mud_update_map(struct mud *mud) mud->ratemax = n; - if (!n) { - fprintf(stderr, "update map failed\n"); + if (!n) return 0; - } unsigned w = 0;