diff --git a/src/backend_chromium.c b/src/backend_chromium.c index c75b708..14305ec 100644 --- a/src/backend_chromium.c +++ b/src/backend_chromium.c @@ -2614,7 +2614,6 @@ bookmark_set ( } if (flags & BOOKMARK_FLAG(SET_TIME)) { - debug_assert(val_len == 2); // Without UTIME_NOW, it is safe to cast away the const qualifier. struct timespec *times = (struct timespec *)val; if (unlikely(0 != update_node_ts(entry->node, times))) { diff --git a/src/backend_firefox.c b/src/backend_firefox.c index 2a728c8..4ee6293 100644 --- a/src/backend_firefox.c +++ b/src/backend_firefox.c @@ -3615,8 +3615,6 @@ bookmark_set ( int attr_type = ATTR_IN_MOZBM_START; if (flags & BOOKMARK_FLAG(SET_TIME)) { - debug_assert(val_len == 2); - struct timespec const *times = val; place_cols.last_visit_date = timespec_to_msecs(×[0]); bm_cols.last_modified = timespec_to_msecs(×[1]); diff --git a/src/fs_ops.c b/src/fs_ops.c index 36a5f08..fe2cfb9 100644 --- a/src/fs_ops.c +++ b/src/fs_ops.c @@ -387,7 +387,7 @@ bm_do_write ( fh->mtime, }; uint32_t set_flags = BOOKMARK_FLAG(SET_TIME); - status = BACKEND_CALL(bookmark_set, id, NULL, set_flags, times, 2); + status = BACKEND_CALL(bookmark_set, id, NULL, set_flags, times, 0); if (status < 0) { return status; } @@ -1110,7 +1110,7 @@ bm_setattr ( if (is_tag) { set_flags |= BOOKMARKFS_BOOKMARK_TYPE(TAG); } - int status = BACKEND_CALL(bookmark_set, id, NULL, set_flags, times, 2); + int status = BACKEND_CALL(bookmark_set, id, NULL, set_flags, times, 0); if (status < 0) { return status; }