Mailinglist Archive: yast-devel (78 mails)

< Previous Next >
[yast-devel] Re: [yast-commit] r66461 - in /trunk/pam: VERSION package/yast2-pam.changes src/Autologin.ycp
Dne 17.10.2011 10:00, jsuchome@xxxxxxxxxxxxxxxxx napsal(a):
+ available = true;
+ user = (string) SCR::Read
(.sysconfig.displaymanager.DISPLAYMANAGER_AUTOLOGIN);
+ pw_less = (string) SCR::Read
(.sysconfig.displaymanager.DISPLAYMANAGER_PASSWORD_LESS_LOGIN) == "yes";
+
+ if (user == nil || user == "")
+ user = "";

Test for nil is sufficient, replacing empty string by empty string is useless.


--

Ladislav Slez√°k
Appliance department / YaST Developer
Lihovarsk√° 1060/12
190 00 Prague 9 / Czech Republic
tel: +420 284 028 960
lslezak@xxxxxxxx
SUSE
--
To unsubscribe, e-mail: yast-devel+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: yast-devel+owner@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages