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


apps/apps.c:420:2: 
418.   			break;
419.   		}
420. > 	return(j);
421.   	}
422.   

int password_callback(char *buf, int bufsiz, int verify,
	PW_CB_DATA *cb_data)
	{
	int i,j;
	char prompt[80];
	const char *prompt_info = NULL;
	const char *password = NULL;
	if (cb_data)
		{
		if (cb_data->password)
			password = cb_data->password;
		if (cb_data->prompt_info)
			prompt_info = cb_data->prompt_info;
		}
	if(password) {
		i=strlen(password);
		i=(i > bufsiz)?bufsiz:i;
		memcpy(buf,password,i);
		return(i);
	}
	if (EVP_get_pw_prompt())
		BIO_snprintf(prompt, sizeof(prompt)-1, EVP_get_pw_prompt(),
			prompt_info ? prompt_info : "");
	else
		BIO_snprintf(prompt, sizeof(prompt)-1,
			"Enter pass phrase for %s:",
			prompt_info ? prompt_info : "");
	for (;;)
		{
		i=EVP_read_pw_string(buf,bufsiz,prompt,verify);
		if (i != 0)
			{
			BIO_printf(bio_err,"aborted!\n");
			memset(buf,0,(unsigned int)bufsiz);
			return(-1);
			}
		j=strlen(buf);
		if (j < PW_MIN_LENGTH)
			{
			BIO_printf(bio_err,"phrase is too short, needs to be at least %d chars\n",PW_MIN_LENGTH);
			}
		else
			break;
		}
	return(j);
	}
['int password_callback(char *buf, int bufsiz, int verify,\n\tPW_CB_DATA *cb_data)\n\t{\n\tint i,j;\n\tchar prompt[80];\n\tconst char *prompt_info = NULL;\n\tconst char *password = NULL;\n\tif (cb_data)\n\t\t{\n\t\tif (cb_data->password)\n\t\t\tpassword = cb_data->password;\n\t\tif (cb_data->prompt_info)\n\t\t\tprompt_info = cb_data->prompt_info;\n\t\t}\n\tif(password) {\n\t\ti=strlen(password);\n\t\ti=(i > bufsiz)?bufsiz:i;\n\t\tmemcpy(buf,password,i);\n\t\treturn(i);\n\t}\n\tif (EVP_get_pw_prompt())\n\t\tBIO_snprintf(prompt, sizeof(prompt)-1, EVP_get_pw_prompt(),\n\t\t\tprompt_info ? prompt_info : "");\n\telse\n\t\tBIO_snprintf(prompt, sizeof(prompt)-1,\n\t\t\t"Enter pass phrase for %s:",\n\t\t\tprompt_info ? prompt_info : "");\n\tfor (;;)\n\t\t{\n\t\ti=EVP_read_pw_string(buf,bufsiz,prompt,verify);\n\t\tif (i != 0)\n\t\t\t{\n\t\t\tBIO_printf(bio_err,"aborted!\\n");\n\t\t\tmemset(buf,0,(unsigned int)bufsiz);\n\t\t\treturn(-1);\n\t\t\t}\n\t\tj=strlen(buf);\n\t\tif (j < PW_MIN_LENGTH)\n\t\t\t{\n\t\t\tBIO_printf(bio_err,"phrase is too short, needs to be at least %d chars\\n",PW_MIN_LENGTH);\n\t\t\t}\n\t\telse\n\t\t\tbreak;\n\t\t}\n\treturn(j);\n\t}']