mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-23 16:19:35 -05:00
Don't use perror after ldbm_store() failure; errno is not set then.
This commit is contained in:
parent
22fb527939
commit
aec88f98bd
1 changed files with 2 additions and 1 deletions
|
|
@ -173,7 +173,8 @@ main( int argc, char **argv )
|
|||
data.dsize = strlen( buf ) + 1;
|
||||
if ( ldbm_store( db->dbc_db, key, data,
|
||||
LDBM_INSERT ) != 0 ) {
|
||||
perror( "id2entry ldbm_store" );
|
||||
fputs("id2entry ldbm_store failed\n",
|
||||
stderr);
|
||||
exit( 1 );
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue