naming; use config.progname instead of raw argv[0]

This commit is contained in:
Gwenhael Le Moine 2024-09-27 10:30:05 +02:00
parent c47d806c0c
commit 145a6430d8
No known key found for this signature in database
GPG key ID: FDFE3669426707A7
6 changed files with 3 additions and 6 deletions

View file

@ -41,12 +41,9 @@ int main( int argc, char** argv )
{
config = *config_init( argc, argv );
/* Chf initialization with msgcat subsystem; notice that on
some systems (e.g. Digital UNIX) catopen() can succeed even
if it was not able to open the right message catalog;
better try it now.
/* Chf initialization with msgcat subsystem
*/
if ( ( ChfStaticInit( argv[ 0 ], /* Application's name */
if ( ( ChfStaticInit( config.progname, /* Application's name */
CHF_DEFAULT, /* Options */
message_table, /* Name of the message catalog */
message_table_size, /* message catalog size */