From 997773a1d1b852ba0763408a05415fc23e24419b Mon Sep 17 00:00:00 2001 From: Fellippe Heitor Date: Tue, 18 Feb 2020 10:39:31 -0300 Subject: [PATCH] Fixes startup crash on macOS as described on #32 --- internal/c/libqb.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/c/libqb.cpp b/internal/c/libqb.cpp index f53324d4b..a73a6f94e 100644 --- a/internal/c/libqb.cpp +++ b/internal/c/libqb.cpp @@ -22494,6 +22494,7 @@ void sub_put2(int32 i,int64 offset,void *element,int32 passed){ if ( (err) != noErr ) goto CantGetPasteboardItemIdentifier; err = PasteboardCopyItemFlavorData( inPasteboard, itemID, CFSTR("public.utf8-plain-text"), &flavorData ); + if ( (err) != noErr ) goto CantGetPasteboardItemCount; data = (char*)CFDataGetBytePtr(flavorData); uint32 size;