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
Родитель deeece201b
Коммит be5133f376
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -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;
}