From c692f98608133c58240e28a7ec98dcea99000073 Mon Sep 17 00:00:00 2001 From: mar Date: Mon, 11 Sep 1989 12:15:03 +0000 Subject: [PATCH] have string_check return the string structure instead of just 1 --- dbck/phase3.qc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dbck/phase3.qc b/dbck/phase3.qc index 18a7f7ec..0a85f746 100644 --- a/dbck/phase3.qc +++ b/dbck/phase3.qc @@ -27,16 +27,16 @@ struct list *l; * increments the string reference count. */ -int string_check(id) +struct string *string_check(id) int id; { register struct string *s; s = (struct string *) hash_lookup(strings, id); if (s == NULL) - return(0); + return(s); s->refc++; - return(1); + return(s); } -- 2.45.2