aboutsummaryrefslogtreecommitdiff
path: root/nxproxy/src/Main.c
diff options
context:
space:
mode:
Diffstat (limited to 'nxproxy/src/Main.c')
-rw-r--r--nxproxy/src/Main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/nxproxy/src/Main.c b/nxproxy/src/Main.c
index d9fb1ef4f..dc4e0fd68 100644
--- a/nxproxy/src/Main.c
+++ b/nxproxy/src/Main.c
@@ -41,6 +41,7 @@ int main(int argc, const char **argv)
char *options = NULL;
+ unsigned long int nx_commfd;
char *nx_commfd_str = NULL;
options = getenv("NX_DISPLAY");
@@ -48,7 +49,7 @@ int main(int argc, const char **argv)
if ((nx_commfd_str = getenv("NX_COMMFD")) != NULL)
{
errno = 0;
- unsigned long int nx_commfd = strtoul(nx_commfd_str, NULL, 10);
+ nx_commfd = strtoul(nx_commfd_str, NULL, 10);
if ((errno) && (0 == nx_commfd))
{