Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Aayush
purr-data
Commits
095f0e92
Commit
095f0e92
authored
Jun 09, 2014
by
Ivica Bukvic
Browse files
*removed unnecessary warnings
parent
c0c9a12d
Changes
1
Hide whitespace changes
Inline
Side-by-side
pd/src/s_file.c
View file @
095f0e92
...
...
@@ -138,8 +138,7 @@ static FILE *sys_prefsavefp;
static
void
sys_initsavepreferences
(
void
)
{
char
filenamebuf
[
FILENAME_MAX
],
errbuf
[
FILENAME_MAX
],
*
homedir
=
getenv
(
"HOME"
);
char
filenamebuf
[
FILENAME_MAX
],
*
homedir
=
getenv
(
"HOME"
);
FILE
*
fp
;
if
(
!
homedir
)
...
...
@@ -148,8 +147,8 @@ static void sys_initsavepreferences( void)
filenamebuf
[
FILENAME_MAX
-
1
]
=
0
;
if
((
sys_prefsavefp
=
fopen
(
filenamebuf
,
"w"
))
==
NULL
)
{
snprintf
(
errbuf
,
FILENAME_MAX
,
"%s: %s"
,
filenamebuf
,
strerror
(
errno
));
pd_error
(
0
,
errbuf
);
//
snprintf(errbuf, FILENAME_MAX, "%s: %s",filenamebuf, strerror(errno));
pd_error
(
0
,
"%s: %s"
,
filenamebuf
,
strerror
(
errno
)
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment