Permalink
Browse files

Try to fix compilation of pc-sounddetect on 10.x - this one is a fair…

… bit more hairy and could benefit from another set of eyes.
  • Loading branch information...
1 parent 62a794c commit 8beb6eb5a654e8c5ac8677f649c18c0fd280b768 Ken Moore committed Nov 7, 2013
Showing with 2 additions and 1 deletion.
  1. +2 −1 src-qt4/pc-sounddetect/parse_sound.c
@@ -32,7 +32,8 @@ const char* GetKo(xmlDocPtr doc, xmlNodePtr cur, char* chip_id) {
if(!memcmp(tempkey,chip_id,strlen(tempkey))) {
xmlFree(key);
- return cur->name;
+ char *name = cur->name;
+ return name;
}
cur = cur->next;
}

0 comments on commit 8beb6eb

Please sign in to comment.