Russell Bryant wrote: > SVN commits to the Digium repositories wrote: >> + /* Create the directory if it does not exist. */ >> + dir = ast_strdupa(tmp); >> + if ((file = strrchr(dir, '/'))) >> + *file++ = '\0'; > > The previous two lines can be simplified by using: > > dir = strsep(&dir, "/"); > > Then, you don't need the file var at all.
Just kidding ... strrchr() != strchr() ... -- Russell Bryant Software Engineer Digium, Inc. _______________________________________________ --Bandwidth and Colocation Provided by http://www.api-digital.com-- asterisk-dev mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-dev
