Skip to content

Commit

Permalink
Code beautifying.
Browse files Browse the repository at this point in the history
  • Loading branch information
docbacardi committed Apr 12, 2021
1 parent 7beca93 commit bc34eb3
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions srcfile.c
Original file line number Diff line number Diff line change
Expand Up @@ -1439,7 +1439,9 @@ bool readMacroParameters(sourcefile_t *that, char ***buf)
/*
* allocate array for parameters
*/
if( (macPar_buf=(char**)(malloc((macPar_buflen=16)*sizeof(char*))))==NULL )
macPar_buflen = 16;
macPar_buf = (char**)malloc(macPar_buflen*sizeof(char*));
if( macPar_buf==NULL )
{
systemError(EM_OutOfMemory);
return false;
Expand Down Expand Up @@ -1537,7 +1539,9 @@ bool readMacroValues(sourcefile_t *that, char ***buf)
/*
* allocate array for parameters
*/
if( (macVal_buf=(char**)(malloc((macVal_buflen=16)*sizeof(char*))))==NULL )
macVal_buflen = 16;
macVal_buf = (char**)malloc(macVal_buflen*sizeof(char*));
if( macVal_buf==NULL )
{
systemError(EM_OutOfMemory);
return false;
Expand Down

0 comments on commit bc34eb3

Please sign in to comment.