diff options
-rw-r--r-- | rpmio/rpmstrpool.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rpmio/rpmstrpool.c b/rpmio/rpmstrpool.c index 1eb379ada..38b676c03 100644 --- a/rpmio/rpmstrpool.c +++ b/rpmio/rpmstrpool.c @@ -146,7 +146,7 @@ rpmsid rpmstrPoolId(rpmstrPool pool, const char *s, int create) const char * rpmstrPoolStr(rpmstrPool pool, rpmsid sid) { const char *s = NULL; - if (pool && sid <= pool->offs_size) + if (pool && sid > 0 && sid <= pool->offs_size) s = pool->data + pool->offs[sid]; return s; } |