Skip to content

Commit

Permalink
Merge pull request #128 from kio-watanabe/Fix-bug
Browse files Browse the repository at this point in the history
Fix bug of printerrormsg
  • Loading branch information
n-isaka authored Sep 3, 2024
2 parents 4c43889 + 6aa0ecb commit 7010167
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ocesql/errorfile.c
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,6 @@ int printerrormsg(char *name, int line, char * code){
int ilen ;
char *p;

errmsgflg = 1;

if( code == NULL || line <=0 || name == NULL)
return 0;
ilen = sizeof(buff);
Expand All @@ -124,6 +122,8 @@ int printerrormsg(char *name, int line, char * code){
fputs(buff, pfile);
fputs("\n", pfile);

errmsgflg = 1;

return 1;
}

Expand Down

0 comments on commit 7010167

Please sign in to comment.