Skip to content

Commit 2f2bbaa

Browse files
Additional Null check
1 parent c10997f commit 2f2bbaa

File tree

1 file changed

+1
-1
lines changed
  • libs/ofxLibwebsockets/include/ofxLibwebsockets

1 file changed

+1
-1
lines changed

libs/ofxLibwebsockets/include/ofxLibwebsockets/Util.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ namespace ofxLibwebsockets {
181181
if ( user != NULL ){
182182
conn = *(Connection**)user;
183183
}
184-
if (conn && (conn->ws != ws || conn->ws == NULL) ){
184+
if (conn != NULL && (conn->ws != ws || conn->ws == NULL) ){
185185
conn->context = context;
186186
conn->ws = ws;
187187
conn->setupAddress();

0 commit comments

Comments
 (0)