[hackers] [surf/master] Style change. (Test commit for new update script in hackers_AT_) || Christoph Lohmann
commit 6c8da4c851b85c6167f3104158089d9a4fe11ca7
Author: Christoph Lohmann <20h_AT_r-36.net>
AuthorDate: Thu Aug 11 10:41:38 2016 +0200
Commit: Christoph Lohmann <20h_AT_r-36.net>
CommitDate: Thu Aug 11 10:41:38 2016 +0200
Style change. (Test commit for new update script in hackers_AT_)
diff --git a/surf.c b/surf.c
index 7fcd17e..46aef68 100644
--- a/surf.c
+++ b/surf.c
_AT_@ -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);
Received on Thu Aug 11 2016 - 10:42:16 CEST
This archive was generated by hypermail 2.3.0
: Thu Aug 11 2016 - 10:48:15 CEST