From c7cb705272afa69cccb31fece819ed156df9f7fa Mon Sep 17 00:00:00 2001 From: smanojna Date: Tue, 7 Mar 2006 15:59:22 +0000 Subject: [PATCH] --- c_adlib/ad_kw/native/kwallets_rw.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/c_adlib/ad_kw/native/kwallets_rw.cpp b/c_adlib/ad_kw/native/kwallets_rw.cpp index c06526e6..38dc300e 100644 --- a/c_adlib/ad_kw/native/kwallets_rw.cpp +++ b/c_adlib/ad_kw/native/kwallets_rw.cpp @@ -266,6 +266,12 @@ void GetDefaultWallet(char dwallet[100]) strcat(homedir, "/.kde/share/config/kwalletrc"); fs = fopen(homedir,"r"); //fs = fopen("/root/.kde/share/config/kwalletrc","r"); + if(!fs) + { + strcpy(dwallet, "kdewallet"); + return; + } + while(!feof(fs)) { fgets(str,80,fs);