]> granicus.if.org Git - postgresql/commitdiff
Fix uninitialized variables in get_covers
authorTeodor Sigaev <teodor@sigaev.ru>
Fri, 16 Jan 2009 12:08:13 +0000 (12:08 +0000)
committerTeodor Sigaev <teodor@sigaev.ru>
Fri, 16 Jan 2009 12:08:13 +0000 (12:08 +0000)
contrib/tsearch2/rank.c

index 760fe11e444779f42fa8e9dece1fb3c28902e528..b3316b0f55a80d23094f0884605052e6ecf6a47a 100644 (file)
@@ -710,8 +710,8 @@ get_covers(PG_FUNCTION_ARGS)
        char       *cptr;
        DocRepresentation *doc;
        int                     pos = 0,
-                               p,
-                               q,
+                               p = 0,
+                               q = 0,
                                olddwpos = 0;
        int                     ncover = 1;