# HG changeset patch # User nicodvb # Date 1212656112 0 # Node ID 587353009f6580b2632412eb648145cf37819321 # Parent d80a041928be9b2697de7ae92c146006747d0069 replace an assert(getenv("HOME)) with a return NULL in cases when $HOME is not defined, as in the case of windows. Patch by Rafael Carr (funman videolan org) diff -r d80a041928be -r 587353009f65 remap.c --- a/remap.c Thu Jun 05 08:45:35 2008 +0000 +++ b/remap.c Thu Jun 05 08:55:12 2008 +0000 @@ -35,7 +35,6 @@ #endif #endif /* _MSC_VER */ -#include #include #include #include @@ -202,7 +201,11 @@ remap_t *map; /* Build the map filename */ - home = getenv("HOME"); assert(home); + home = getenv("HOME"); + if(!home) { + fprintf(MSG_OUT, "libdvdnav: Unable to find home directory" ); + return NULL; + } snprintf(fname, sizeof(fname), "%s/.dvdnav/%s.map", home, title); /* Open the map file */