Style change. (Test commit for new update script in hackers@) - surf - Surf web browser. (DIR) Log (DIR) Files (DIR) Refs (DIR) README (DIR) LICENSE --- (DIR) commit 6c8da4c851b85c6167f3104158089d9a4fe11ca7 (DIR) parent 31ec0fb93d84e7d9f324340de790076e78911b11 (HTM) Author: Christoph Lohmann <20h@r-36.net> Date: Thu, 11 Aug 2016 10:41:38 +0200 Style change. (Test commit for new update script in hackers@) Diffstat: surf.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) --- (DIR) diff --git a/surf.c b/surf.c @@ -333,10 +333,11 @@ buildpath(const char *path) p = (char *)&path[1]; homedir = getcurrentuserhomedir(); } else { - if ((p = strchr(path, '/'))) + if ((p = strchr(path, '/'))) { name = g_strndup(&path[1], --p - path); - else + } else { name = g_strdup(&path[1]); + } homedir = getuserhomedir(name); g_free(name);