This commit is contained in:
		| @@ -266,6 +266,12 @@ void GetDefaultWallet(char dwallet[100]) | |||||||
| 		strcat(homedir, "/.kde/share/config/kwalletrc"); | 		strcat(homedir, "/.kde/share/config/kwalletrc"); | ||||||
| 		fs = fopen(homedir,"r"); | 		fs = fopen(homedir,"r"); | ||||||
| 		//fs = fopen("/root/.kde/share/config/kwalletrc","r"); | 		//fs = fopen("/root/.kde/share/config/kwalletrc","r"); | ||||||
|  | 		if(!fs) | ||||||
|  | 		{ | ||||||
|  | 			strcpy(dwallet, "kdewallet"); | ||||||
|  | 			return; | ||||||
|  | 		} | ||||||
|  | 	 | ||||||
| 		while(!feof(fs)) | 		while(!feof(fs)) | ||||||
|    		{ |    		{ | ||||||
| 			fgets(str,80,fs); | 			fgets(str,80,fs); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user