X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=functions%2Fstdio%2Ffopen.c;h=ad8d8765716a69752b27c15a911a08d0e9aca4d9;hb=519443d45a417a108fc47caaf790efc963d8d3f6;hp=f11094416066ed91a9f6bb6d358b4dcebea981c9;hpb=9ee0e8c5b5df0b114218e28753e6c0291cb356a3;p=pdclib 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: