Hello, All!
I assume my post isn't offtopic here.
I used 'valgrind' utility (guess plenty if you know and use it) for my
application and I got the message "Invalid read of size 1" regarding this
pieice of code:
int db_is_fld_empty (char *fld)
{
return ( !strcmp(fld, "") ? 1 : 0 );
}
Seems like it doesn't like rmpty string I compare with or it's something
more serious?
TIA.
With best regards, Roman Mashak. E-mail: mrv@tusur.ru
I assume my post isn't offtopic here.
I used 'valgrind' utility (guess plenty if you know and use it) for my
application and I got the message "Invalid read of size 1" regarding this
pieice of code:
int db_is_fld_empty (char *fld)
{
return ( !strcmp(fld, "") ? 1 : 0 );
}
Seems like it doesn't like rmpty string I compare with or it's something
more serious?
TIA.
With best regards, Roman Mashak. E-mail: mrv@tusur.ru
Comment