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
Split YAZ library into two libs : libyaz.la and libyaz_server.la.
[yaz-moved-to-github.git]
/
src
/
oid_util.c
diff --git
a/src/oid_util.c
b/src/oid_util.c
index
7523158
..
93d724b
100644
(file)
--- a/
src/oid_util.c
+++ b/
src/oid_util.c
@@
-2,7
+2,7
@@
* Copyright (C) 1995-2007, Index Data ApS
* See the file LICENSE for details.
*
* Copyright (C) 1995-2007, Index Data ApS
* See the file LICENSE for details.
*
- * $Id: oid_util.c,v 1.2 2007-04-12 20:47:28 adam Exp $
+ * $Id: oid_util.c,v 1.3 2007-04-13 07:04:42 adam Exp $
*/
/**
*/
/**
@@
-90,6
+90,8
@@
int oid_dotstring_to_oid(const char *name, int *oid)
name++;
}
}
name++;
}
}
+ if (i == 0)
+ return -1;
oid[i] = val;
oid[i+1] = -1;
return 0;
oid[i] = val;
oid[i+1] = -1;
return 0;