mirror of
https://github.com/transmission/transmission
synced 2025-02-10 08:24:50 +00:00
(trunk libT) #2240: Cryptic information messages on startup
This commit is contained in:
parent
1ae47c697d
commit
057638c4e9
1 changed files with 2 additions and 1 deletions
|
@ -422,6 +422,7 @@ tr_set_compare( const void * va,
|
||||||
const char*
|
const char*
|
||||||
tr_strip_positional_args( const char* str )
|
tr_strip_positional_args( const char* str )
|
||||||
{
|
{
|
||||||
|
const char * in = str;
|
||||||
static size_t bufsize = 0;
|
static size_t bufsize = 0;
|
||||||
static char * buf = NULL;
|
static char * buf = NULL;
|
||||||
const size_t len = strlen( str );
|
const size_t len = strlen( str );
|
||||||
|
@ -448,7 +449,7 @@ tr_strip_positional_args( const char* str )
|
||||||
}
|
}
|
||||||
*out = '\0';
|
*out = '\0';
|
||||||
|
|
||||||
return buf;
|
return strcmp( buf, in ) ? buf : in;
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue