Permalink
Browse files

Code cleanup.

  • Loading branch information...
1 parent 46a4228 commit e719dfeeac1c1dd76ed780f727ff1b221898ca6b Tilman Sauerbeck committed Dec 6, 2009
Showing with 4 additions and 6 deletions.
  1. +4 −6 src/xmms2-scrobbler.c
View
@@ -788,17 +788,15 @@ load_config ()
fp = fopen (filename, "r");
- if (!fp) {
+ if (!fp)
fprintf (stderr,
"warning: cannot open queue '%s' for reading\n",
filename);
+ else {
+ for_each_line (fp, handle_queue_line, server);
- continue;
+ fclose (fp);
}
-
- for_each_line (fp, handle_queue_line, server);
-
- fclose (fp);
}
closedir (dp);

0 comments on commit e719dfe

Please sign in to comment.