]> code.delx.au - gnu-emacs/blobdiff - src/nsselect.m
Avoid undefined behavior with huge regexp interval counts.
[gnu-emacs] / src / nsselect.m
index d95ff799877b27b933117d29130401d462035062..00626a42cad5b74e8f3c632dc2f9b9b4f97b15e2 100644 (file)
@@ -256,9 +256,7 @@ ns_string_from_pasteboard (id pb)
   type = [pb availableTypeFromArray: ns_return_types];
   if (type == nil)
     {
-      Fsignal (Qquit,
-              list1 (build_string ("empty or unsupported pasteboard type")));
-    return Qnil;
+      return Qnil;
     }
 
   /* get the string */
@@ -274,9 +272,6 @@ ns_string_from_pasteboard (id pb)
         }
       else
         {
-          Fsignal (Qquit,
-                  list1 (build_string ("pasteboard doesn't contain"
-                                       " valid data")));
           return Qnil;
         }
     }