* confwin.c: Fix bug that allows garbage for non-existent user config filename on Windows.
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@303 81a1dc3b-b13d-400b-aceb-764788c761c2
This commit is contained in:
parent
6189880dd5
commit
6ee4dd48d9
|
@ -1,3 +1,7 @@
|
|||
2003-04-03 Eric B. Weddington <eric@umginc.net>
|
||||
* confwin.c: Fix bug that allows garbage for non-existent user
|
||||
config filename on Windows.
|
||||
|
||||
2003-03-24 Theodore A. Roth <troth@openavr.org>
|
||||
|
||||
* NEWS: Add note about avr910 support.
|
||||
|
|
|
@ -30,6 +30,8 @@ static char *filename;
|
|||
|
||||
void win_sys_config_set(char sys_config[PATH_MAX])
|
||||
{
|
||||
sys_config[0] = 0;
|
||||
|
||||
/* Use Windows API call to search for the Windows default system config file.*/
|
||||
SearchPath(NULL, "avrdude.conf", NULL, PATH_MAX, sys_config, &filename);
|
||||
return;
|
||||
|
@ -38,6 +40,8 @@ void win_sys_config_set(char sys_config[PATH_MAX])
|
|||
|
||||
void win_usr_config_set(char usr_config[PATH_MAX])
|
||||
{
|
||||
usr_config[0] = 0;
|
||||
|
||||
/* Use Windows API call to search for the Windows default user config file. */
|
||||
SearchPath(NULL, "avrdude.rc", NULL, PATH_MAX, usr_config, &filename);
|
||||
return;
|
||||
|
|
Loading…
Reference in New Issue