1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-04-09 15: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:
Simon Tatham 2004-05-24 11:30:15 +00:00
parent deeece201b
commit be5133f376

View File

@ -1371,7 +1371,7 @@ char * retrieve_cutbuffer(int * nbytes)
{
char * ptr;
ptr = XFetchBytes(GDK_DISPLAY(), nbytes);
if (nbytes <= 0 && ptr != 0) {
if (*nbytes <= 0 && ptr != 0) {
XFree(ptr);
ptr = 0;
}