openbsd-ports/databases/virtuoso/patches/patch-libsrc_Wi_recovery_c
zhuk ebb3091571 Import Virtuoso. Needed by Soprano (for tests) and for KDE 4 (Nepomuk).
Virtuoso is a high-performance object-relational SQL database. As
a database, it provides transactions, a smart SQL compiler, powerful
stored-procedure language with optional Java and .Net server-side
hosting, hot backup, SQL-99 support and more. It has all major
data-access interfaces, such as ODBC, JDBC, ADO .Net and OLE/DB.

"I looked at virtuoso and it gave me too much headaches.
Import it then (and polish in-tree)" landry@
2013-04-22 17:32:31 +00:00

16 lines
675 B
Plaintext

$OpenBSD: patch-libsrc_Wi_recovery_c,v 1.1.1.1 2013/04/22 17:32:31 zhuk Exp $
Replace hand-crafted zeroing logic with simplier and non-warning one.
--- libsrc/Wi/recovery.c.orig Tue Jan 29 20:25:38 2013
+++ libsrc/Wi/recovery.c Tue Jan 29 20:27:56 2013
@@ -396,8 +396,8 @@ bkp_check_and_recover_blob_cols (it_cursor_t * itc, db
log_error ("will have to set blob for col %s in key %s to empty",
col_name, key->key_name);
- INT64_SET_NA (col + BL_CHAR_LEN, 0L);
- INT64_SET_NA (col + BL_BYTE_LEN, 0L);
+ memset(col + BL_CHAR_LEN, 0, sizeof(int64));
+ memset(col + BL_BYTE_LEN, 0, sizeof(int64));
updated = 1;
}
}