E: Ibar: Fix ignored return value of fwrite.
SVN revision: 59603
This commit is contained in:
parent
ec75c4700b
commit
a0668dc681
|
@ -218,11 +218,13 @@ _cb_entry_ok(char *text, void *data)
|
||||||
f = fopen(buf, "w");
|
f = fopen(buf, "w");
|
||||||
if (f)
|
if (f)
|
||||||
{
|
{
|
||||||
|
int ret = 0;
|
||||||
|
|
||||||
/* Populate this .order file with some defaults */
|
/* Populate this .order file with some defaults */
|
||||||
snprintf(tmp, sizeof(tmp), "xterm.desktop\n" "sylpheed.desktop\n"
|
snprintf(tmp, sizeof(tmp), "xterm.desktop\n" "sylpheed.desktop\n"
|
||||||
"firefox.desktop\n" "openoffice.desktop\n" "xchat.desktop\n"
|
"firefox.desktop\n" "openoffice.desktop\n" "xchat.desktop\n"
|
||||||
"gimp.desktop\n" "xmms.desktop\n");
|
"gimp.desktop\n" "xmms.desktop\n");
|
||||||
fwrite(tmp, sizeof(char), strlen(tmp), f);
|
ret = fwrite(tmp, sizeof(char), strlen(tmp), f);
|
||||||
fclose(f);
|
fclose(f);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue