summary refs log tree commit diff stats
path: root/src/common/util.c
diff options
context:
space:
mode:
authorTingPing <tingping@tingping.se>2015-03-19 16:06:49 -0400
committerTingPing <tingping@tingping.se>2015-03-19 16:06:49 -0400
commitb4906f3d230c22c807cdb00b72de0d60491bba76 (patch)
tree7a91908c6e7515217d7dd85bfe4a425b0ecd6d7c /src/common/util.c
parent4e338a2b70205e39556b51f774dbcc65eed971c4 (diff)
Fix warnings
Diffstat (limited to 'src/common/util.c')
-rw-r--r--src/common/util.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common/util.c b/src/common/util.c
index d650c820..be3dcac2 100644
--- a/src/common/util.c
+++ b/src/common/util.c
@@ -246,11 +246,11 @@ expand_homedir (char *file)
 
 	if (file[0] == '~')
 	{
+		char *slash_pos;
+
 		if (file[1] == '\0' || file[1] == '/')
 			return g_strconcat (g_get_home_dir (), &file[1], NULL);
 
-		char *slash_pos;
-
 		user = g_strdup(file);
 
 		slash_pos = strchr(user, '/');