crypto/pem/pem_lib.c:119: error: UNINITIALIZED_VALUE
  The value read from j was never initialized.
Showing all 1 steps of the trace


crypto/pem/pem_lib.c:119:2: 
117.   			break;
118.   		}
119. > 	return(j);
120.   #endif
121.   	}

static int def_callback(char *buf, int num, int w)
	{
#ifdef NO_FP_API
	PEMerr(PEM_F_DEF_CALLBACK,ERR_R_SHOULD_NOT_HAVE_BEEN_CALLED);
	return(-1);
#else
	int i,j;
	const char *prompt;
	prompt=EVP_get_pw_prompt();
	if (prompt == NULL)
		prompt="Enter PEM pass phrase:";
	for (;;)
		{
		i=EVP_read_pw_string(buf,num,prompt,w);
		if (i != 0)
			{
			PEMerr(PEM_F_DEF_CALLBACK,PEM_R_PROBLEMS_GETTING_PASSWORD);
			memset(buf,0,(unsigned int)num);
			return(-1);
			}
		j=strlen(buf);
		if (j < MIN_LENGTH)
			{
			fprintf(stderr,"phrase is too short, needs to be at least %d chars\n",MIN_LENGTH);
			}
		else
			break;
		}
	return(j);
#endif
	}
['static int def_callback(char *buf, int num, int w)\n\t{\n#ifdef NO_FP_API\n\tPEMerr(PEM_F_DEF_CALLBACK,ERR_R_SHOULD_NOT_HAVE_BEEN_CALLED);\n\treturn(-1);\n#else\n\tint i,j;\n\tconst char *prompt;\n\tprompt=EVP_get_pw_prompt();\n\tif (prompt == NULL)\n\t\tprompt="Enter PEM pass phrase:";\n\tfor (;;)\n\t\t{\n\t\ti=EVP_read_pw_string(buf,num,prompt,w);\n\t\tif (i != 0)\n\t\t\t{\n\t\t\tPEMerr(PEM_F_DEF_CALLBACK,PEM_R_PROBLEMS_GETTING_PASSWORD);\n\t\t\tmemset(buf,0,(unsigned int)num);\n\t\t\treturn(-1);\n\t\t\t}\n\t\tj=strlen(buf);\n\t\tif (j < MIN_LENGTH)\n\t\t\t{\n\t\t\tfprintf(stderr,"phrase is too short, needs to be at least %d chars\\n",MIN_LENGTH);\n\t\t\t}\n\t\telse\n\t\t\tbreak;\n\t\t}\n\treturn(j);\n#endif\n\t}']