From: Jean-Philippe Orsini Date: Mon, 7 May 2012 10:49:26 +0000 (+0000) Subject: code style X-Git-Tag: v1.3.0~104 X-Git-Url: http://git.wpitchoune.net/gitweb/?p=ppastats.git;a=commitdiff_plain;h=c32ae4d8a044e8444d0c132e5ea6e3b5b9230198 code style --- diff --git a/src/html.c b/src/html.c index c5a0a2d..d969424 100644 --- a/src/html.c +++ b/src/html.c @@ -143,10 +143,13 @@ src=\"js/excanvas.js\">\n\ static char *path_new(const char *dir, const char *file, const char *suffixe) { - char *path = malloc(strlen(dir)+1+ - strlen(file)+ - (suffixe ? strlen(suffixe) : 0) + - 1); + char *path; + + /* [dir]/[file][suffixe] */ + path = malloc(strlen(dir)+1+ + strlen(file)+ + (suffixe ? strlen(suffixe) : 0) + + 1); strcpy(path, dir); strcat(path, "/");