|
samba unix风格的配置文件配置信息读取C代码.(23) bufr = (char *)malloc( bSize ); if( NULL == bufr ) { //DEBUG(0,("%s memory allocation failure.\n", func)); myfile_close(InFile); return( False ); } result = Parse( InFile, sfunc, pfunc ); SAFE_FREE( bufr ); bufr = NULL; bSize = 0; } myfile_close(InFile); if( !result ) /* Generic failure. */ { //DEBUG(0,("%s Failed. Error returned from params.c:parse().\n", func)); return( False ); } return( True ); /* Generic success. */ } /* pm_process */ /* -------------------------------------------------------------------------- */
|