소스 검색

fix return

Philipp Friedenberger 10 년 전
부모
커밋
c0a952e971
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/CivetServer.cpp

+ 1 - 1
src/CivetServer.cpp

@@ -57,7 +57,7 @@ int CivetServer::requestHandler(struct mg_connection *conn, void *cbdata)
     assert(me != NULL);
 
     // Happens when a request hits the server before the context is saved
-    if (me->context == NULL) return;
+    if (me->context == NULL) return 0;
 
     mg_lock_context(me->context);
     me->connections[conn] = CivetConnection();