diff --git a/db/libdb.pm.in b/db/libdb.pm.in
index b82cea3005019d64aea2a98bf2a04643adf2b6fe..cdac48ed354513307fafe4d8419d1414cbf788c0 100644
--- a/db/libdb.pm.in
+++ b/db/libdb.pm.in
@@ -929,7 +929,7 @@ sub TBGrpTrust($$$)
     #
     # Must be a member of the group.
     #
-    $query_result =
+    my $query_result =
 	DBQueryFatal("select trust from group_membership ".
 		     "where uid_idx='$uid_idx' and pid='$pid' and gid='$gid'");