diff --git a/src/combine_path.h b/src/combine_path.h index fe87232e8d2e8656cdb873d1a85dba674a406c93..c92879a3436ad72ca043c0d212197de7af827192 100644 --- a/src/combine_path.h +++ b/src/combine_path.h @@ -1,5 +1,5 @@ /* - * $Id: combine_path.h,v 1.6 2001/06/10 17:07:33 grubba Exp $ + * $Id: combine_path.h,v 1.7 2001/06/11 11:49:47 grubba Exp $ * * Combine path template. * @@ -93,6 +93,8 @@ static void APPEND_PATH(struct string_builder *s, if(s->s->len && !IS_SEP(LAST_PUSHED())) PUSH('/'); + if (!len) return; + /* Remove initial "./" if any. */ if(s->s->len==2) {