Branch: Tag:

2003-04-10

2003-04-10 16:05:52 by Martin Stjernholm <mast@lysator.liu.se>

Fixed handling of the empty string in is_absolute_path.

Rev: lib/master.pike.in:1.245

6:   // Pike is distributed under GPL, LGPL and MPL. See the file COPYING   // for more information.   // - // $Id: master.pike.in,v 1.244 2003/04/02 12:22:59 mast Exp $ + // $Id: master.pike.in,v 1.245 2003/04/10 16:05:52 mast Exp $      #pike __REAL_VERSION__   
145:    return 1;   #define IS_ABSOLUTE_PATH is_absolute_path   #else - #define IS_ABSOLUTE_PATH(X) ((X)[0]=='/') + #define IS_ABSOLUTE_PATH(X) has_prefix((X),"/")   #endif -  return p[0]=='/'; +  return has_prefix(p,"/");   }      #ifdef __NT__