Changeset ca749a9 for functions.c


Ignore:
Timestamp:
Jul 3, 2011, 8:43:06 PM (13 years ago)
Author:
Jason Gross <jgross@mit.edu>
Branches:
master, release-1.10, release-1.8, release-1.9
Children:
b4a678a
Parents:
ca54fd6
git-author:
Jason Gross <jgross@mit.edu> (06/27/11 04:14:36)
git-committer:
Jason Gross <jgross@mit.edu> (07/03/11 20:43:06)
Message:
Make variable getters return NULL instead of "<null>"

This fixes trac-#184:
Since commit 010a9511420887329269aa51e7598533e826c57f, the default zsigs
show up as empty; BarnOwl::default_zephyr_signature() checks
BarnOwl::getvar('zsigproc') as a boolean (which may be incorrect if you
happen to have a zsigproc called 0). As of that commit, BarnOwl::getvar
returns "<null>" instead of undef.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • functions.c

    rca54fd6 rca749a9  
    15891589      var = owl_variable_get_tostring(v);
    15901590      if (var) {
    1591         g_string_append(str, var);
    1592         g_free(var);
     1591        g_string_append(str, var);
     1592        g_free(var);
     1593      } else {
     1594        g_string_append(str, "<null>");
    15931595      }
    15941596    }
Note: See TracChangeset for help on using the changeset viewer.