Guard against non-blob values of bookmark.date

This commit is contained in:
Tom Willemsen 2012-12-27 03:03:24 +01:00
parent 77c7dbaa9a
commit 1b6badfcce

View file

@ -5,7 +5,9 @@
(require-library srfi-4)
(define (blob->seconds blob)
(u32vector-ref (blob->u32vector blob) 0))
(if (u32vector? blob)
(u32vector-ref (blob->u32vector blob) 0)
0))
(define (convert-table db name converter #!optional select)
(let ((count (first-result db (string-append "SELECT COUNT(*) FROM " name)))