projects
/
u
/
mdw
/
putty
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Note that htmlhelp.h from HTML Help Workshop works perfectly well with Cygwin.
[u/mdw/putty]
/
x11fwd.c
diff --git
a/x11fwd.c
b/x11fwd.c
index
13c6823
..
139cb77
100644
(file)
--- a/
x11fwd.c
+++ b/
x11fwd.c
@@
-245,7
+245,7
@@
char *x11_display(const char *display) {
char *ret;
if(!display || !*display) {
/* try to find platform-specific local display */
char *ret;
if(!display || !*display) {
/* try to find platform-specific local display */
- if((ret = platform_get_x_display())==0)
+ if((ret = platform_get_x_display())==0
|| !*ret
)
/* plausible default for all platforms */
ret = dupstr(":0");
} else
/* plausible default for all platforms */
ret = dupstr(":0");
} else
@@
-485,7
+485,7
@@
int x11_send(Socket s, char *data, int len)
char realauthdata[64];
int realauthlen = 0;
int authstrlen = strlen(x11_authnames[pr->auth->realproto]);
char realauthdata[64];
int realauthlen = 0;
int authstrlen = strlen(x11_authnames[pr->auth->realproto]);
- int buflen
;
+ int buflen
= 0; /* initialise to placate optimiser */
static const char zeroes[4] = { 0,0,0,0 };
void *buf;
static const char zeroes[4] = { 0,0,0,0 };
void *buf;