X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Ffile_glob.c;h=fd6ae0b244b199014799174cbffc0eff3552502a;hb=ce46d8646a527a8364d3aa152822b3680a7321bd;hp=b087cf0d4f48ecf4caf9fadd9aab7de4ecfbdcce;hpb=77c5a4fca8b516fd39b8ba213daed17a465a6b2a;p=yaz-moved-to-github.git diff --git a/src/file_glob.c b/src/file_glob.c index b087cf0..fd6ae0b 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-2012 Index Data + * Copyright (C) 1995-2013 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 */