mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-04-17 19:18:06 -05:00
Arnaud Desitter points out a silly mistake in retrieve_cutbuffer()
(don't test for `int *nbytes' being <= 0, test for the integer it points to being <= 0!). [originally from svn r4254]
This commit is contained in:
parent
deeece201b
commit
be5133f376
@ -1371,7 +1371,7 @@ char * retrieve_cutbuffer(int * nbytes)
|
|||||||
{
|
{
|
||||||
char * ptr;
|
char * ptr;
|
||||||
ptr = XFetchBytes(GDK_DISPLAY(), nbytes);
|
ptr = XFetchBytes(GDK_DISPLAY(), nbytes);
|
||||||
if (nbytes <= 0 && ptr != 0) {
|
if (*nbytes <= 0 && ptr != 0) {
|
||||||
XFree(ptr);
|
XFree(ptr);
|
||||||
ptr = 0;
|
ptr = 0;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user