code style
authorJean-Philippe Orsini <jeanfi@gmail.com>
Mon, 7 May 2012 10:49:26 +0000 (10:49 +0000)
committerJean-Philippe Orsini <jeanfi@gmail.com>
Mon, 7 May 2012 10:49:26 +0000 (10:49 +0000)
src/html.c

index c5a0a2d..d969424 100644 (file)
@@ -143,10 +143,13 @@ src=\"js/excanvas.js\"></script><![endif]-->\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, "/");