purify report the oraconnect has problem,how to resolve it? [message #244251] |
Tue, 12 June 2007 02:53 |
kitten
Messages: 1 Registered: June 2007
|
Junior Member |
|
|
i try to use purify check my codes, i didn't know how to resolve it.
the main function is:
int main(int argc, char** argv)
{
int i;
i=1;
if ( argc != 2 )
{
fprintf(stderr,"The argument are wrong! PLEASE HECK...\n");
fprintf(stderr,"EXAMPLE:[%s] outputfile\n",argv[0]);
exit(ERR_USAGE);
}
oraconnect();
read_rip();
oradisconnect(i);
exit(0);
}
int oraconnect()
{
strcpy(Uid.arr,"scott");
Uid.len = strlen(Uid.arr);
strcpy(Pwd.arr,"tiger");
Pwd.len = strlen(Pwd.arr);
EXEC SQL CONNECT :Uid IDENTIFIED BY :Pwd;
if (trace_flag) start_sql_trace();
return RETURN_OK;
}
purify report the followed bug( see the attachments)
-
Attachment: 未命名.jpg
(Size: 95.63KB, Downloaded 3167 times)
|
|
|