diff options
author | phintuka <phintuka> | 2008-05-22 10:35:44 +0000 |
---|---|---|
committer | phintuka <phintuka> | 2008-05-22 10:35:44 +0000 |
commit | 4c4cfa0ce7799372187ef762bfa0586a666bcf5e (patch) | |
tree | 3d9020aff814a429d6ac5e85f2bd00df3ed5deaf | |
parent | d7c92c459f04f9e6fe8c972934935353ac24d534 (diff) | |
download | xineliboutput-4c4cfa0ce7799372187ef762bfa0586a666bcf5e.tar.gz xineliboutput-4c4cfa0ce7799372187ef762bfa0586a666bcf5e.tar.bz2 |
Always init metadata to empty string regardless of used metadata fetching method
(init was missing from old method, and if pipe command failed unintialized data was set to menu)
-rw-r--r-- | tools/metainfo_menu.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/metainfo_menu.c b/tools/metainfo_menu.c index dd26cf71..8400f451 100644 --- a/tools/metainfo_menu.c +++ b/tools/metainfo_menu.c @@ -4,7 +4,7 @@ * See the main source file 'xineliboutput.c' for copyright information and * how to reach the author. * - * $Id: metainfo_menu.c,v 1.2 2008-05-22 10:33:40 phintuka Exp $ + * $Id: metainfo_menu.c,v 1.3 2008-05-22 10:35:44 phintuka Exp $ * */ @@ -40,6 +40,8 @@ void cMetainfoMenu::Display(void) { cOsdMenu::Display(); char metadata[4096]; + metadata[0] = 0; + #ifdef HAVE_EXTRACTOR_H EXTRACTOR_ExtractorList * plugins; EXTRACTOR_KeywordList * md_list; @@ -50,7 +52,6 @@ void cMetainfoMenu::Display(void) const char *key; char * buf; - strcpy(metadata, ""); while(md_list) { if((key=EXTRACTOR_getKeywordTypeAsString(md_list->keywordType))) { buf = strdup(md_list->keyword); |