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
Merge branch 'master' of ssh://git.indexdata.com:222/home/git/pub/yaz
[yaz-moved-to-github.git]
/
util
/
yaz-url.c
diff --git
a/util/yaz-url.c
b/util/yaz-url.c
index
ed5d8bb
..
498e2f8
100644
(file)
--- a/
util/yaz-url.c
+++ b/
util/yaz-url.c
@@
-1,5
+1,5
@@
/* This file is part of the YAZ toolkit.
/* 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.
*/
* See the file LICENSE for details.
*/
@@
-43,9
+43,10
@@
static char *get_file(const char *fname, size_t *len)
*len = ftell(inf);
if (*len) /* zero length not considered an error */
{
*len = ftell(inf);
if (*len) /* zero length not considered an error */
{
+ size_t r;
buf = xmalloc(*len);
fseek(inf, 0L, SEEK_SET);
buf = xmalloc(*len);
fseek(inf, 0L, SEEK_SET);
- size_t r = fread(buf, 1, *len, inf);
+ r = fread(buf, 1, *len, inf);
if (r != *len)
{
yaz_log(YLOG_FATAL|YLOG_ERRNO, "short fread of %s", fname);
if (r != *len)
{
yaz_log(YLOG_FATAL|YLOG_ERRNO, "short fread of %s", fname);