# HG changeset patch # User Michael Pavone # Date 1468990643 25200 # Node ID 86ed81bb574f64b3e80f7737688d1570cf277e8f # Parent 07a65e2ffb1f08d0e01317bd94ec853577ac6921 Fix bug in ensure_dir_exists that would cause it to fail when mixed path separators were used diff -r 07a65e2ffb1f -r 86ed81bb574f util.c --- a/util.c Sun Jul 17 23:18:30 2016 -0700 +++ b/util.c Tue Jul 19 21:57:23 2016 -0700 @@ -338,7 +338,7 @@ //so search for both char *sep = strrchr(parent, '\\'); char *osep = strrchr(parent, '/'); - if (osep && (!sep || osep < sep)) { + if (osep && (!sep || osep > sep)) { sep = osep; } if (!sep || sep == parent) {