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

This commit is contained in:
Christoph Lohmann 2016-08-11 10:41:38 +02:00
parent 31ec0fb93d
commit 6c8da4c851

5
surf.c
View file

@ -333,10 +333,11 @@ buildpath(const char *path)
p = (char *)&path[1]; p = (char *)&path[1];
homedir = getcurrentuserhomedir(); homedir = getcurrentuserhomedir();
} else { } else {
if ((p = strchr(path, '/'))) if ((p = strchr(path, '/'))) {
name = g_strndup(&path[1], --p - path); name = g_strndup(&path[1], --p - path);
else } else {
name = g_strdup(&path[1]); name = g_strdup(&path[1]);
}
homedir = getuserhomedir(name); homedir = getuserhomedir(name);
g_free(name); g_free(name);