Statements after declarations, dammit
authorjacob <jacob@cda61777-01e9-0310-a592-d414129be87e>
Thu, 16 Jan 2003 00:52:28 +0000 (00:52 +0000)
committerjacob <jacob@cda61777-01e9-0310-a592-d414129be87e>
Thu, 16 Jan 2003 00:52:28 +0000 (00:52 +0000)
git-svn-id: svn://svn.tartarus.org/sgt/putty@2618 cda61777-01e9-0310-a592-d414129be87e

window.c

index 04d3d61..410c37e 100644 (file)
--- a/window.c
+++ b/window.c
@@ -275,8 +275,8 @@ int WINAPI WinMain(HINSTANCE inst, HINSTANCE prev, LPSTR cmdline, int show)
        default_protocol = be_default_protocol;
        /* Find the appropriate default port. */
        {
-           default_port = 0; /* illegal */
            int i;
+           default_port = 0; /* illegal */
            for (i = 0; backends[i].backend != NULL; i++)
                if (backends[i].protocol == default_protocol) {
                    default_port = backends[i].backend->default_port;