commit 6c8da4c851b85c6167f3104158089d9a4fe11ca7
Author:     Christoph Lohmann <[email protected]>
AuthorDate: Thu Aug 11 10:41:38 2016 +0200
Commit:     Christoph Lohmann <[email protected]>
CommitDate: Thu Aug 11 10:41:38 2016 +0200

    Style change. (Test commit for new update script in hackers@)

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);

Reply via email to