]> git.eshelyaron.com Git - emacs.git/commitdiff
Add delq list arg check
authorPaul Eggert <eggert@cs.ucla.edu>
Sun, 29 Jan 2017 00:45:56 +0000 (16:45 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 30 Jan 2017 21:33:01 +0000 (13:33 -0800)
* src/fns.c (Fdelq): Check that list is a proper list.
This is more compatible with what ‘delete’ does.

src/fns.c

index 0d93f8247485a43454e1fde16bb403d803691a3b..136a2198c2c1d43ba6597701c3f65a501c06f0de 100644 (file)
--- a/src/fns.c
+++ b/src/fns.c
@@ -1589,6 +1589,7 @@ argument.  */)
       else
        prev = tail;
     }
+  CHECK_LIST_END (tail, list);
   return list;
 }