Comment 4 for bug 937020

Revision history for this message
Allison Karlitskaya (desrt) wrote :

The way the new hud-performance work does the token splitting should prevent this from happening.

The loop in question now reads like so:

  while (*string)
    {
      /* strip separators */
      string += strspn (string, SEPARATORS);

      if (*string)
        {
          gint length;

          /* consume a token */
          length = strcspn (string, SEPARATORS);
          g_ptr_array_add (array, hud_token_new (string, length));
          string += length;
        }
    }

so any number of trailing separators should be silently consumed and have no additional effect on the search.