|  | @@ -3096,6 +3096,9 @@ static char *
 | 
											
												
													
														|  |  mg_strndup_ctx(const char *ptr, size_t len, struct mg_context *ctx)
 |  |  mg_strndup_ctx(const char *ptr, size_t len, struct mg_context *ctx)
 | 
											
												
													
														|  |  {
 |  |  {
 | 
											
												
													
														|  |  	char *p;
 |  |  	char *p;
 | 
											
												
													
														|  | 
 |  | +	(
 | 
											
												
													
														|  | 
 |  | +	    void)ctx; /* Avoid Visual Studio warning if USE_SERVER_STATS is not
 | 
											
												
													
														|  | 
 |  | +                   * defined */
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  |  	if ((p = (char *)mg_malloc_ctx(len + 1, ctx)) != NULL) {
 |  |  	if ((p = (char *)mg_malloc_ctx(len + 1, ctx)) != NULL) {
 | 
											
												
													
														|  |  		mg_strlcpy(p, ptr, len + 1);
 |  |  		mg_strlcpy(p, ptr, len + 1);
 |