From 6c8da4c851b85c6167f3104158089d9a4fe11ca7 Mon Sep 17 00:00:00 2001 From: Christoph Lohmann <20h@r-36.net> Date: Thu, 11 Aug 2016 10:41:38 +0200 Subject: Style change. (Test commit for new update script in hackers@) --- surf.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/surf.c b/surf.c index 7fcd17e..46aef68 100644 --- 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); -- cgit v1.2.3