apps/s_socket.c:389: error: UNINITIALIZED_VALUE
  The value read from i was never initialized.
Showing all 1 steps of the trace


apps/s_socket.c:389:2: 
387.   out:
388.   	unlink(path);
389. > 	return(i);
390.   	}
391.   #endif

int do_server_unix(const char *path, int *ret,
		   int (*cb)(char *hostname, int s, int stype, unsigned char *context),
		   unsigned char *context, int naccept)
	{
	int sock;
	int accept_socket = 0;
	int i;
	if (!init_server_unix(&accept_socket, path)) return(0);
	if (ret != NULL)
		*ret=accept_socket;
	for (;;)
		{
		if (do_accept_unix(accept_socket, &sock) == 0)
			{
			SHUTDOWN(accept_socket);
			i = 0;
			goto out;
			}
		i=(*cb)(NULL, sock, 0, context);
		SHUTDOWN2(sock);
		if (naccept != -1)
			naccept--;
		if (i < 0 || naccept == 0)
			{
			SHUTDOWN2(accept_socket);
			goto out;
			}
		}
out:
	unlink(path);
	return(i);
	}
['int do_server_unix(const char *path, int *ret,\n\t\t   int (*cb)(char *hostname, int s, int stype, unsigned char *context),\n\t\t   unsigned char *context, int naccept)\n\t{\n\tint sock;\n\tint accept_socket = 0;\n\tint i;\n\tif (!init_server_unix(&accept_socket, path)) return(0);\n\tif (ret != NULL)\n\t\t*ret=accept_socket;\n\tfor (;;)\n\t\t{\n\t\tif (do_accept_unix(accept_socket, &sock) == 0)\n\t\t\t{\n\t\t\tSHUTDOWN(accept_socket);\n\t\t\ti = 0;\n\t\t\tgoto out;\n\t\t\t}\n\t\ti=(*cb)(NULL, sock, 0, context);\n\t\tSHUTDOWN2(sock);\n\t\tif (naccept != -1)\n\t\t\tnaccept--;\n\t\tif (i < 0 || naccept == 0)\n\t\t\t{\n\t\t\tSHUTDOWN2(accept_socket);\n\t\t\tgoto out;\n\t\t\t}\n\t\t}\nout:\n\tunlink(path);\n\treturn(i);\n\t}']