Skip to content

Commit

Permalink
refactor: don't call exit after error(FATAL...)
Browse files Browse the repository at this point in the history
error(FATAL...) calls exit(1) internally.
No need to call it again outside.

Signed-off-by: Masatake YAMATO <yamato@redhat.com>
  • Loading branch information
masatake committed Feb 24, 2015
1 parent 4d81a3a commit 1565d27
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions entry.c
Original file line number Diff line number Diff line change
Expand Up @@ -836,10 +836,7 @@ extern void makeTagEntry (const tagEntryInfo *const tag)
length = writeCtagsEntry (tag);

if (ferror (TagFile.fp))
{
error (FATAL | PERROR, "cannot write tag file");
exit (1);
}

++TagFile.numTags.added;
rememberMaxLengths (strlen (tag->name), (size_t) length);
Expand Down

0 comments on commit 1565d27

Please sign in to comment.