浏览代码

Remove unused values reported by Coverity.

Kimmo Mustonen 8 年之前
父节点
当前提交
f5969ae496
共有 1 个文件被更改,包括 0 次插入2 次删除
  1. 0 2
      src/civetweb.c

+ 0 - 2
src/civetweb.c

@@ -6346,7 +6346,6 @@ interpret_uri(struct mg_connection *conn,    /* in: request (must be valid) */
 
 					if (truncated) {
 						mg_free(tmp_str);
-						tmp_str = NULL;
 						goto interpret_cleanup;
 					}
 					sep_pos = strlen(tmp_str);
@@ -14879,7 +14878,6 @@ accept_new_connection(const struct socket *listener, struct mg_context *ctx)
 		sockaddr_to_string(src_addr, sizeof(src_addr), &so.rsa);
 		mg_cry(fc(ctx), "%s: %s is not allowed to connect", __func__, src_addr);
 		closesocket(so.sock);
-		so.sock = INVALID_SOCKET;
 	} else {
 		/* Put so socket structure into the queue */
 		DEBUG_TRACE("Accepted socket %d", (int)so.sock);