code style
[ppastats.git] / 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, "/");