diff options
-rw-r--r-- | plugins/hd/lyrics_hd.c | 14 | ||||
-rw-r--r-- | src/lyrics_hd.c | 14 |
2 files changed, 14 insertions, 14 deletions
diff --git a/plugins/hd/lyrics_hd.c b/plugins/hd/lyrics_hd.c index a90ee9d47..7a3a8b745 100644 --- a/plugins/hd/lyrics_hd.c +++ b/plugins/hd/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; 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; |