On Donnerstag, 23. September 2010, Erik Faye-Lund wrote: > @@ -297,7 +297,7 @@ int mingw_open (const char *filename, int oflags, ...) > mode = va_arg(args, int); > va_end(args); > > - if (!strcmp(filename, "/dev/null")) > + if (filename && !strcmp(filename, "/dev/null")) > filename = "nul"; > > fd = open(filename, oflags, mode); Good catch, thank you! Acked-by: Johannes Sixt <j6t@xxxxxxxx> -- Hannes -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html