freebsd-ports/databases/pxtools/files/patch-pxconvert.c
Gabor Kovesdan 4145084b78 - Add patch to fix coredumps when using tables with BLOBs
- Bump PORTREVISION

Submitted by:	Kurt Jaeger <pi@c0mplx.org> (via private mail)
Approved by:	erwin (mentor, implicit)
2007-02-21 19:00:53 +00:00

16 lines
593 B
C

--- src/pxconvert.c.orig Wed Feb 21 19:48:42 2007
+++ src/pxconvert.c Wed Feb 21 19:49:51 2007
@@ -512,7 +512,12 @@
#ifdef DEBUG
fprintf(stderr, "[BLOB] offset: %08lx, length: %08lx, mod_number: %04x, index: %02x\n", offset, length, mod_number, index);
#endif
- if (index == 0x00) return 0;
+
+ if (index == 0x00) {
+ *binsize = 0;
+ *binstorage = NULL;
+ return 0;
+ }
if (!blobname) {
fprintf(stderr, "[BLOB] offset: %08lx, length: %08lx, mod_number: %04x, index: %02x - do I need a BLOB-filename '-b ...' ?\n", offset, length, mod_number, index);