X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=functions%2Fstdio%2Ffopen.c;h=ad8d8765716a69752b27c15a911a08d0e9aca4d9;hb=64249b24c5f43657d36c9b04165afb88e000bf78;hp=f11094416066ed91a9f6bb6d358b4dcebea981c9;hpb=5a313c5a48d18419e78d03a04501d7fe21f49d3f;p=pdclib.old diff --git a/functions/stdio/fopen.c b/functions/stdio/fopen.c index f110944..ad8d876 100644 --- a/functions/stdio/fopen.c +++ b/functions/stdio/fopen.c @@ -81,7 +81,7 @@ FILE * fopen( const char * _PDCLIB_restrict filename, const char * _PDCLIB_restr rc->next = _PDCLIB_filelist; _PDCLIB_filelist = rc; /* Setting buffer. TODO: Check for unbuffered? */ - if ( ( rc->buffer = malloc( BUFSIZ ) ) == NULL goto fail; + if ( ( rc->buffer = malloc( BUFSIZ ) ) == NULL ) goto fail; /* TODO: Setting mbstate */ return rc; fail: