Skip to content

Commit 652bee9

Browse files
committed
set mqcno->Version according to whether we have mqcno->CCDTUrl
1 parent 402ca9a commit 652bee9

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

go.mod

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
module github.com/ibm-messaging/mq-golang

ibmmq/mqiMQCNO.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,15 @@ void freeCCDTUrl(MQCNO *mqcno) {
3636
3737
void setCCDTUrl(MQCNO *mqcno, PMQCHAR url, MQLONG length) {
3838
#if defined(MQCNO_VERSION_6) && MQCNO_CURRENT_VERSION >= MQCNO_VERSION_6
39+
mqcno->Version = MQCNO_VERSION_6;
3940
mqcno->CCDTUrlOffset = 0;
4041
mqcno->CCDTUrlPtr = NULL;
4142
mqcno->CCDTUrlLength = length;
4243
if (url != NULL) {
4344
mqcno->CCDTUrlPtr = url;
4445
}
4546
#else
47+
mqcno->Version = MQCNO_CURRENT_VERSION;
4648
if (url != NULL) {
4749
free(url);
4850
}

0 commit comments

Comments
 (0)