Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

initialize the option value size before calling zmq_getsockopt()

  • Loading branch information...
commit e0368b41adcde8a18d8a0b2bb0334fd05094f93d 1 parent b7005b1
@galdor authored
Showing with 1 addition and 0 deletions.
  1. +1 −0  src/zmq.lisp
View
1  src/zmq.lisp
@@ -197,6 +197,7 @@ SOCKET."
(destructuring-bind (type length) info
(with-foreign-objects ((%value type length) (%size 'size-t))
(with-socket-locked (socket)
+ (setf (mem-ref %size 'size-t) length)
(call-ffi -1 '%getsockopt (socket-%socket socket) option %value %size))
(case option
(:identity
Please sign in to comment.
Something went wrong with that request. Please try again.