Changeset: 9cde088b05f0 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/9cde088b05f0
Modified Files:
monetdb5/modules/atoms/uuid.c
Branch: default
Log Message:
Fix pointers.
diffs (30 lines):
diff --git a/monetdb5/modules/atoms/uuid.c b/monetdb5/modules/atoms/uuid.c
--- a/monetdb5/modules/atoms/uuid.c
+++ b/monetdb5/modules/atoms/uuid.c
@@ -348,7 +348,7 @@ UUIDuuid2str_bulk(bat *res, const bat *b
struct canditer ci;
oid off;
bool nils = false;
- char buf[UUID_STRLEN + 2], **pbuf = (char **) &buf;
+ char buf[UUID_STRLEN + 2], *pbuf = buf;
size_t l = sizeof(buf);
ssize_t (*conv)(char **, size_t *, const void *, bool) =
BATatoms[TYPE_uuid].atomToStr;
@@ -373,7 +373,7 @@ UUIDuuid2str_bulk(bat *res, const bat *b
oid p = (canditer_next_dense(&ci) - off);
uuid v = vals[p];
- if (conv(pbuf, &l, &v, false) < 0) { /* it should never
be reallocated */
+ if (conv(&pbuf, &l, &v, false) < 0) { /* it should
never be reallocated */
msg = createException(MAL,
"batcalc.uuid2strbulk", GDK_EXCEPTION);
goto bailout;
}
@@ -388,7 +388,7 @@ UUIDuuid2str_bulk(bat *res, const bat *b
oid p = (canditer_next(&ci) - off);
uuid v = vals[p];
- if (conv(pbuf, &l, &v, false) < 0) { /* it should never
be reallocated */
+ if (conv(&pbuf, &l, &v, false) < 0) { /* it should
never be reallocated */
msg = createException(MAL,
"batcalc.uuid2strbulk", GDK_EXCEPTION);
goto bailout;
}
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list