Nope, above doesn't work, this should:

static gboolean
is_env (const char *a,
        const char *b)
{
  while (*a == *b)
  {
    if (*a == 0 || *b == 0 || *b == '=') /* cover naughty equals usage */
      return FALSE;

    a++;
    b++;
  }

  if (*a == '=' && *b == 0)
    return TRUE;

  return FALSE;
}

-- 
menu items selected from screen 1 open on screen 0
https://bugs.launchpad.net/bugs/346964
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to