Skip to content

Commit

Permalink
maint: Don't set errno after bindtextdomain()
Browse files Browse the repository at this point in the history
  • Loading branch information
andy5995 committed Nov 15, 2024
1 parent e82435c commit 0a82522
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -673,9 +673,6 @@ main(const int argc, char *const argv[])
setlocale(LC_ALL, "");
bindtextdomain(PACKAGE_STRING, locale_dir);
textdomain(PACKAGE_STRING);
// If the locale directory isn't found, errno is set
// to 2.
errno = 0;
#endif

rmw_options cli_user_options;
Expand Down

0 comments on commit 0a82522

Please sign in to comment.