E: Ibar: Fix ignored return value of fwrite.

SVN revision: 59603
This commit is contained in:
Christopher Michael 2011-05-22 17:10:32 +00:00
parent ec75c4700b
commit a0668dc681
1 changed files with 3 additions and 1 deletions

View File

@ -218,11 +218,13 @@ _cb_entry_ok(char *text, void *data)
f = fopen(buf, "w");
if (f)
{
int ret = 0;
/* Populate this .order file with some defaults */
snprintf(tmp, sizeof(tmp), "xterm.desktop\n" "sylpheed.desktop\n"
"firefox.desktop\n" "openoffice.desktop\n" "xchat.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);
}
}