projects
/
yaz-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
SOLR facets: no magic for non-date facets
[yaz-moved-to-github.git]
/
src
/
readconf.c
diff --git
a/src/readconf.c
b/src/readconf.c
index
60f7486
..
4d9bd05
100644
(file)
--- a/
src/readconf.c
+++ b/
src/readconf.c
@@
-1,5
+1,5
@@
/* This file is part of the YAZ toolkit.
/* This file is part of the YAZ toolkit.
- * Copyright (C) 1995-2008 Index Data
+ * Copyright (C) 1995-2011 Index Data
* See the file LICENSE for details.
*/
* See the file LICENSE for details.
*/
@@
-13,7
+13,6
@@
#endif
#include <stdio.h>
#endif
#include <stdio.h>
-#include <ctype.h>
#include <yaz/log.h>
#include <yaz/readconf.h>
#include <yaz/log.h>
#include <yaz/readconf.h>
@@
-37,7
+36,7
@@
int readconf_line(FILE *f, int *lineno, char *line, int len,
if (!p)
return 0;
if (!p)
return 0;
- for (argc = 0; *p ; argc++)
+ for (argc = 0; *p && argc < num ; argc++)
{
if (*p == '#') /* trailing comment */
break;
{
if (*p == '#') /* trailing comment */
break;
@@
-90,6
+89,7
@@
int readconf(char *name, void *rprivate,
/*
* Local variables:
* c-basic-offset: 4
/*
* Local variables:
* c-basic-offset: 4
+ * c-file-style: "Stroustrup"
* indent-tabs-mode: nil
* End:
* vim: shiftwidth=4 tabstop=8 expandtab
* indent-tabs-mode: nil
* End:
* vim: shiftwidth=4 tabstop=8 expandtab