Style change. (Test commit for new update script in hackers@)
This commit is contained in:
parent
31ec0fb93d
commit
6c8da4c851
1 changed files with 3 additions and 2 deletions
5
surf.c
5
surf.c
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue