Browse Source

Fix possibly uninitialized variable 'truncated' reported by Coverity.

Kimmo Mustonen 8 năm trước cách đây
mục cha
commit
b484f5ca9a
1 tập tin đã thay đổi với 3 bổ sung0 xóa
  1. 3 0
      src/civetweb.c

+ 3 - 0
src/civetweb.c

@@ -2684,6 +2684,9 @@ mg_vsnprintf(const struct mg_connection *conn,
 	int n, ok;
 
 	if (buflen == 0) {
+		if (truncated) {
+			*truncated = 1;
+		}
 		return;
 	}