~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/utility_dictionary/environmental.cc

  • Committer: Brian Aker
  • Date: 2010-10-08 17:09:37 UTC
  • mto: This revision was merged to the branch mainline in revision 1824.
  • Revision ID: brian@tangent.org-20101008170937-qn1u67vbkevxidvs
Removes PBXT from valgrind testing (Padraig will write to Paul, the problem is PBXT not playing nicely with the STL).
I found a bug where the ENV table was not presenting us with good values for
variables (which was my mistake).

Show diffs side-by-side

added added

removed removed

Lines of Context:
51
51
  if (not *position)
52
52
    return false;
53
53
 
54
 
  std::string substring(*position, 0, LARGEST_ENV_STRING);
55
 
  push(substring);
56
 
 
57
54
  char *value= NULL;
58
55
  if ((value= strchr(*position, '=')))
59
56
  {
62
59
 
63
60
  if (value)
64
61
  {
 
62
    std::string substring(*position, 0, (size_t)(value - *position -1)); // The additional -1 is for the = 
 
63
    push(substring);
 
64
 
65
65
    substring.assign(value, 0, LARGEST_ENV_STRING);
66
66
    push(substring);
67
67
  }
68
68
  else
69
69
  {
 
70
    std::string substring(*position, 0, LARGEST_ENV_STRING);
70
71
    push(false);
71
72
  }
72
73