forked from osmocom/wireshark
Allow <variance> to be successfully sscanf'd no matter the locale for the
decimal symbol. Same change and reason as for revision 36160. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@36166 f5534014-38df-0310-8fa8-9805f1628bb7
This commit is contained in:
parent
161c490d9c
commit
cc99e4f389
|
@ -711,9 +711,12 @@ gtk_comparestat_init(const char *optarg, void* userdata _U_)
|
|||
const char *filter=NULL;
|
||||
GString *error_string;
|
||||
|
||||
if(sscanf(optarg,"compare,%d,%d,%d,%d,%lf,%n",&start, &stop, &ttl, &order, &variance, &pos)==5){
|
||||
if(sscanf(optarg,"compare,%d,%d,%d,%d,%lf%n",&start, &stop, &ttl, &order, &variance, &pos)==5){
|
||||
if(pos){
|
||||
filter=optarg+pos;
|
||||
if(*(optarg+pos)==',')
|
||||
filter=optarg+pos+1;
|
||||
else
|
||||
filter=optarg+pos;
|
||||
} else {
|
||||
filter=NULL;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue