Fix uninitialized variables in get_covers
authorTeodor Sigaev <teodor@sigaev.ru>
Fri, 16 Jan 2009 12:10:34 +0000 (12:10 +0000)
committerTeodor Sigaev <teodor@sigaev.ru>
Fri, 16 Jan 2009 12:10:34 +0000 (12:10 +0000)
contrib/tsearch2/rank.c

index 9098cc9ed6002134f95691c14f4f82b9b9ea8b5f..8b8d51813848dc03ff1b0d1330399c1d00f19b55 100644 (file)
@@ -678,8 +678,8 @@ get_covers(PG_FUNCTION_ARGS)
        char       *cptr;
        DocRepresentation *doc;
        int                     pos = 0,
-                               p,
-                               q,
+                               p = 0,
+                               q = 0,
                                olddwpos = 0;
        int                     ncover = 1;