X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=puttygen.c;h=b9edf0d6ce16379be8442d75446a60fa9e8e0d12;hb=9c5951ed35cf9019bf17685b4356212eae1a63b3;hp=3f64ce72d2059b5ad0153c406e61d618c7cc6c9a;hpb=3730ada5ce457468441b32d7e84157e481b8ba75;p=PuTTY.git diff --git a/puttygen.c b/puttygen.c index 3f64ce72..b9edf0d6 100644 --- a/puttygen.c +++ b/puttygen.c @@ -77,6 +77,13 @@ static void progress_update(void *param, int phase, int iprogress) case 3: position = PHASE3START + progress * p->phase3mult; break; + default: + /* + * Shouldn't happen, but having a default clause placates + * gcc -Wall, which would otherwise complain that + * `position' might be used uninitialised. + */ + return; } SendMessage(p->progbar, PBM_SETPOS, position / DIVISOR, 0); @@ -687,7 +694,7 @@ static int CALLBACK MainDlgProc(HWND hwnd, UINT msg, char *comment; struct PassphraseProcStruct pps; struct RSAKey newkey1; - struct ssh2_userkey *newkey2; + struct ssh2_userkey *newkey2 = NULL; ver = keyfile_version(filename); if (ver == 0) {