Commit 055af185 authored by Thomas Jahns's avatar Thomas Jahns 🤸
Browse files

Fix missing check of function result.

parent 889b588b
......@@ -732,11 +732,15 @@ int fowPOSIXASYNCH ( const char *filename )
iret = dbuffer_push ( afd->db, ( unsigned char *) filename,
strlen ( filename ));
xassert(iret == 0);
iret = dbuffer_push ( afd->db, ( unsigned char *) token, 1);
xassert(iret == 0);
sprintf ( message,"%lX", buffersize);
iret = dbuffer_push ( afd->db, ( unsigned char *) message,
strlen ( message ));
xassert(iret == 0);
iret = dbuffer_push ( afd->db, ( unsigned char *) token, 1);
xassert(iret == 0);
if ( ddebug )
{
......
......@@ -638,11 +638,15 @@ int fowPOSIXNONB ( const char *filename )
/* put filename, id and buffersize on buffer */
iret = dbuffer_push ( afd->db, ( unsigned char *) filename, strlen ( filename ));
xassert(iret == 0);
iret = dbuffer_push ( afd->db, ( unsigned char *) token, 1);
sprintf ( message,"%lX", buffersize);
xassert(iret == 0);
sprintf ( message,"%lX", buffersize);
iret = dbuffer_push ( afd->db, ( unsigned char *) message, strlen ( message ));
iret = dbuffer_push ( afd->db, ( unsigned char *) token, 1);
xassert(iret == 0);
iret = dbuffer_push ( afd->db, ( unsigned char *) token, 1);
xassert(iret == 0);
if ( ddebug )
{
l = strlen ( filename ) + strlen ( message ) + 2;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment