--- mplayer/m_option.c	2010-03-01 11:22:55.000000000 +0100
+++ mplayer.build/m_option.c	2010-04-28 14:40:06.000000000 +0200
@@ -483,6 +483,8 @@
     /**/;
 
   lst = realloc(lst,(n+ln+1)*sizeof(char*));
+  if (ln == 0)
+	lst[0] = NULL;
 
   if(pre) {
     memmove(&lst[n],lst,(ln+1)*sizeof(char*));
