Commit 0f67af9d authored by Mike Gabriel's avatar Mike Gabriel

nxcomp/Children.cpp: Don't generate warnings with duplicated NX paths.

Fixes ArcticaProject/nx-libs#370.
parent 522e743f
...@@ -260,6 +260,9 @@ int NXTransDialog(const char *caption, const char *message, ...@@ -260,6 +260,9 @@ int NXTransDialog(const char *caption, const char *message,
// in the default NX path. // in the default NX path.
// //
if (i == 0)
{
strcpy(command, "nxclient"); strcpy(command, "nxclient");
char newPath[DEFAULT_STRING_LIMIT]; char newPath[DEFAULT_STRING_LIMIT];
...@@ -312,6 +315,8 @@ int NXTransDialog(const char *caption, const char *message, ...@@ -312,6 +315,8 @@ int NXTransDialog(const char *caption, const char *message,
setenv("PATH", newPath, 1); setenv("PATH", newPath, 1);
#endif #endif
}
} }
// //
...@@ -455,6 +460,9 @@ int NXTransClient(const char* display) ...@@ -455,6 +460,9 @@ int NXTransClient(const char* display)
// in the default NX path. // in the default NX path.
// //
if (i == 0)
{
strcpy(command, "nxclient"); strcpy(command, "nxclient");
char newPath[DEFAULT_STRING_LIMIT]; char newPath[DEFAULT_STRING_LIMIT];
...@@ -509,6 +517,7 @@ int NXTransClient(const char* display) ...@@ -509,6 +517,7 @@ int NXTransClient(const char* display)
#endif #endif
} }
}
// //
// Hopefully useless. // Hopefully useless.
// //
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment