diff options
author | Andreas Obergrusberger <tradiaz@yahoo.de> | 2007-01-03 21:07:39 +0000 |
---|---|---|
committer | Andreas Obergrusberger <tradiaz@yahoo.de> | 2007-01-03 21:07:39 +0000 |
commit | 653b7f9dd27d655cf1bdca6d559d3ece6cdb6443 (patch) | |
tree | dab0d359ce440bf7d692dfb3183b3f50cd15e416 /src | |
parent | a56ea3fd9ce2474ebb0fb04e8498fb7e1d6965ec (diff) | |
download | mpd-653b7f9dd27d655cf1bdca6d559d3ece6cdb6443.tar.gz mpd-653b7f9dd27d655cf1bdca6d559d3ece6cdb6443.tar.xz mpd-653b7f9dd27d655cf1bdca6d559d3ece6cdb6443.zip |
fix error display on lyrics screen
git-svn-id: https://svn.musicpd.org/ncmpc/branches/tradiaz@5219 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to 'src')
-rw-r--r-- | src/lyrics_hd.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/lyrics_hd.c b/src/lyrics_hd.c index 2d91adc2a..322160c98 100644 --- a/src/lyrics_hd.c +++ b/src/lyrics_hd.c @@ -7,13 +7,13 @@ char *check_lyr_hd(char *artist, char *title, int how) { //checking whether for lyrics file existence and proper access - static char path[1024]; - snprintf(path, 1024, "%s/.lyrics/%s/%s.lyric", - getenv("HOME"), artist, title); + result |= 2; + static char path[1024]; + snprintf(path, 1024, "%s/.lyrics/%s/%s.lyric", + getenv("HOME"), artist, title); - if(g_access(path, how) != 0) return NULL; - - return path; + if(g_access(path, how) != 0) return NULL; + return path; } @@ -25,7 +25,7 @@ int get_lyr_hd(char *artist, char *title) FILE *lyr_file; lyr_file = fopen(path, "r"); if(lyr_file == NULL) return -1; - + result |= 4; char *buf = NULL; char **line = &buf; size_t n = 0; |