if (!si_oldFormat) { SI_GetCharPref(pref_SignonFileNameU, &signonFileNameU); if (!signonFileNameU) { signonFileNameU = Wallet_RandomName("u"); SI_SetCharPref(pref_SignonFileNameU, signonFileNameU); }
SI_GetCharPref(pref_SignonFileNameU, &signonFileNameU); if (!signonFileNameU) { signonFileNameU = Wallet_RandomName("u"); SI_SetCharPref(pref_SignonFileNameU, signonFileNameU);
SI_InitSignonFileName() {  /*   * All files created by wallet and single signon will have a format designation number   * in the first line of the file.  However the original files did not do that.  So we   * go to great pains to maintain backwards compatibility with these old files.  We   * accomplish this by changing the names of the old files.   *   * The original and new names of the files are:   *   *                   old names       new names   *    key file:      xxxxxxxx.key    xxxxxxxx.k   *    wallet data:   xxxxxxxx.wlt    xxxxxxxx.w   *    ss passwords:  xxxxxxxx.psw    xxxxxxxx.p   *    ss urls:       signon.tab      xxxxxxxx.u   *   * Furtherore, the names of the first three files were stored in prefs.js for the old   * files but all four are stored there for the new ones.   */  SI_GetCharPref(pref_SignonFileNameP, &signonFileNameP);  if (!signonFileNameP) {    SI_GetCharPref(pref_SignonFileName, &signonFileNameP);    if (!signonFileNameP) {      signonFileNameP = Wallet_RandomName("p");      SI_SetCharPref(pref_SignonFileNameP, signonFileNameP);    } else {      si_oldFormat = PR_TRUE;    }  }  if (!si_oldFormat) {    SI_GetCharPref(pref_SignonFileNameU, &signonFileNameU);    if (!signonFileNameU) {      signonFileNameU = Wallet_RandomName("u");      SI_SetCharPref(pref_SignonFileNameU, signonFileNameU);    }  }}