]> git.lizzy.rs Git - plan9front.git/commitdiff
vncs: shut up used and not set warning
authormischief <mischief@offblast.org>
Mon, 20 Aug 2018 19:51:29 +0000 (12:51 -0700)
committermischief <mischief@offblast.org>
Mon, 20 Aug 2018 19:51:29 +0000 (12:51 -0700)
sys/src/cmd/vnc/vncs.c

index 376f938301f08894d58b603c3fc10f22f8d61560..3c9928c11c788787e516a61a317583e3bd33b22a 100644 (file)
@@ -969,14 +969,15 @@ static int
 updateimage(Vncs *v)
 {
        int i, j, ncount, nsend, docursor, dowarp, doresize;
-       vlong ooffset;
+       vlong ooffset, t1;
        Point warppt;
        Rectangle cr;
        Rlist rlist;
-       vlong t1;
        int (*count)(Vncs*, Rectangle);
        int (*send)(Vncs*, Rectangle);
 
+       ooffset = t1 = 0;
+
        vnclock(v);
        dowarp = v->canwarp && v->dowarp;
        warppt = v->warppt;