X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Ffile_glob.c;h=8560504fb3699073763eb3ec9ac5f689285b2cd0;hb=5bc2ee09e4dff0f872ce738a5327bced915e3474;hp=57b51ac70a371068eee2e1776b07ed26876fae9c;hpb=43a9d38d20c1b1bcd1a03b2445a501d27526bd35;p=yaz-moved-to-github.git diff --git a/src/file_glob.c b/src/file_glob.c index 57b51ac..8560504 100644 --- a/src/file_glob.c +++ b/src/file_glob.c @@ -1,9 +1,9 @@ /* This file is part of the YAZ toolkit. - * Copyright (C) 1995-2011 Index Data + * Copyright (C) 1995-2012 Index Data * See the file LICENSE for details. */ -/** \file +/** \file \brief File globbing (ala POSIX glob, but simpler) */ #if HAVE_CONFIG_H @@ -48,7 +48,7 @@ static void glob_r(yaz_glob_res_t res, const char *pattern, size_t off, is_pattern = 1; i++; } - + if (!is_pattern && pattern[i]) /* no pattern and directory part */ { i++; /* skip dir sep */