X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Foid_util.c;h=93d724b404be98c1a8009a903baa85e8f0488683;hb=fe507b6b15788a3a8e58063d9dae52532a5229a5;hp=752315871ff61ad214e63361f82e4fa34d0a238c;hpb=be821514c869d68186361b5aab6bbfd1aa60e087;p=yaz-moved-to-github.git diff --git a/src/oid_util.c b/src/oid_util.c index 7523158..93d724b 100644 --- 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. * - * $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++; } } + if (i == 0) + return -1; oid[i] = val; oid[i+1] = -1; return 0;