8000 Fix compiler warning "function may return address of local variable" · smartcoder00/arduinoWebSockets@3073c15 · GitHub
[go: up one dir, main page]

Skip to content

Commit 3073c15

Browse files
sivar2311Links2004
authored andcommitted
Fix compiler warning "function may return address of local variable"
1 parent 5881a99 commit 3073c15

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/WebSocketsServer.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -627,6 +627,7 @@ WSclient_t * WebSocketsServerCore::handleNewClient(WEBSOCKETS_NETWORK_CLASS * tc
627627
client = &dummy;
628628
client->tcp = tcpClient;
629629
dropNativeClient(client);
630+
return nullptr;
630631
}
631632

632633
WEBSOCKETS_YIELD();

0 commit comments

Comments
 (0)