list.patch 596 B

1234567891011121314151617
  1. diff -urN xine-lib-1.1.12.orig/misc/xine-list.c xine-lib-1.1.12/misc/xine-list.c
  2. --- xine-lib-1.1.12.orig/misc/xine-list.c 2008-04-06 21:32:21 +0300
  3. +++ xine-lib-1.1.12/misc/xine-list.c 2008-04-19 21:15:50 +0300
  4. @@ -125,7 +125,11 @@
  5. sep = strchr (text, ';') ? : text + strlen (text);
  6. sep2 = which == 'a' ? sep : strchr (text, ':') ? : sep;
  7. if (!*sep)
  8. - break;
  9. + {
  10. + if (text[0])
  11. + printf ("%s;", text);
  12. + break;
  13. + }
  14. if (printf ("%.*s;", (int)(sep2 - text), text) < 0 || (lf && puts ("") < 0))
  15. goto write_fail;
  16. }