summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher James Halse Rogers <chalserogers@gmail.com>2007-09-23 13:14:16 +1000
committerChristopher James Halse Rogers <chalserogers@gmail.com>2007-09-23 13:14:16 +1000
commit782d173328d3389d329e4a337e26afad7754641f (patch)
treefa53bb05e37378baaf31535f8793b19b1c26576a
parent0f2fb2780853c091139ca32a14aad9e7c65e998f (diff)
downloadsession-xdg-782d173328d3389d329e4a337e26afad7754641f.tar.gz
session-xdg-782d173328d3389d329e4a337e26afad7754641f.tar.bz2
Silence gcc 'paren around assignment as truth value' warning
-rw-r--r--session.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/session.c b/session.c
index b9b3297..b14bb62 100644
--- a/session.c
+++ b/session.c
@@ -357,7 +357,7 @@ getSessionFilePath (char *buffer, size_t size)
//setup filename and create directories as needed
buffer[0] = '\0';
- if (xdgDir = getenv ("XDG_DATA_HOME"))
+ if ((xdgDir = getenv ("XDG_DATA_HOME")))
{
strncat (buffer, xdgDir, size);
}