Ethereal-cvs: [Ethereal-cvs] cvs commit: ethereal packet-dcerpc-samr.c packet-ntlmssp.c packet
guy 2003/03/11 16:51:53 CST
Modified files:
. packet-dcerpc-samr.c packet-ntlmssp.c
packet-radius.c prefs.c
Log:
When registering a string preference, if the value of the preference is
NULL, convert it to a copy of a null string, otherwise replace it with a
copy of the string, so that we know that the variable for the preference
always points to a string that can be freed.
That also obviates the need to worry about a null-pointer value for a
preference variable when checking to see whether a preference has changed.
When checking for a string preference not being set, check for an empty
string, not a null pointer - the above code turns null pointers into
pointers to empty strings, *and* the GUI code does (and always did!) the
same.
Revision Changes Path
1.82 +2 -2 ethereal/packet-dcerpc-samr.c
1.36 +2 -2 ethereal/packet-ntlmssp.c
1.78 +2 -2 ethereal/packet-radius.c
1.96 +17 -4 ethereal/prefs.c