
31 Dec
2010
31 Dec
'10
11:58 a.m.
On 12/31/2010 11:41 AM, Reinhard Meyer wrote:
/* Loading ok, check if we should attempt an auto-start */
if (((s = getenv("autostart")) != NULL) && (strcmp(s,"yes") == 0)) {
if (getenv_yesno("autostart")) { char *local_args[2]; local_args[0] = argv[0]; local_args[1] = NULL;
Originally, a missing env var resulted in FALSE, with the helper function it results in TRUE!!
Thanks, this explains why it happens ! We should check again for a missing env var.
Best regards, Stefano Babic
--
=====================================================================
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-0 Fax: +49-8142-66989-80 Email: office@denx.de
=====================================================================