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
Desktop Bugs, which is a bug assignee.

-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs

Reply via email to