Skip to content
Snippets Groups Projects
Commit aec88f98 authored by Hallvard Furuseth's avatar Hallvard Furuseth
Browse files

Don't use perror after ldbm_store() failure; errno is not set then.

parent 22fb5279
No related branches found
No related tags found
No related merge requests found
......@@ -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 );
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment