Skip to content
Snippets Groups Projects
Commit 095f0e92 authored by Ivica Bukvic's avatar Ivica Bukvic
Browse files

*removed unnecessary warnings

parent c0c9a12d
No related branches found
No related tags found
No related merge requests found
...@@ -138,8 +138,7 @@ static FILE *sys_prefsavefp; ...@@ -138,8 +138,7 @@ static FILE *sys_prefsavefp;
static void sys_initsavepreferences( void) static void sys_initsavepreferences( void)
{ {
char filenamebuf[FILENAME_MAX], errbuf[FILENAME_MAX], char filenamebuf[FILENAME_MAX], *homedir = getenv("HOME");
*homedir = getenv("HOME");
FILE *fp; FILE *fp;
if (!homedir) if (!homedir)
...@@ -148,8 +147,8 @@ static void sys_initsavepreferences( void) ...@@ -148,8 +147,8 @@ static void sys_initsavepreferences( void)
filenamebuf[FILENAME_MAX-1] = 0; filenamebuf[FILENAME_MAX-1] = 0;
if ((sys_prefsavefp = fopen(filenamebuf, "w")) == NULL) if ((sys_prefsavefp = fopen(filenamebuf, "w")) == NULL)
{ {
snprintf(errbuf, FILENAME_MAX, "%s: %s",filenamebuf, strerror(errno)); //snprintf(errbuf, FILENAME_MAX, "%s: %s",filenamebuf, strerror(errno));
pd_error(0, errbuf); pd_error(0, "%s: %s",filenamebuf, strerror(errno));
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment