~ubuntu-branches/ubuntu/saucy/postfix/saucy

« back to all changes in this revision

Viewing changes to src/util/mac_expand.c

  • Committer: Bazaar Package Importer
  • Author(s): LaMont Jones
  • Date: 2011-02-22 11:20:43 UTC
  • mfrom: (1.1.27 upstream)
  • Revision ID: james.westby@ubuntu.com-20110222112043-c34ht219w3ybrilr
Tags: 2.8.0-2
* a little more lintian cleanup
* Fix missing format strings in smtp-sink.c

Show diffs side-by-side

added added

removed removed

Lines of Context:
47
47
/* .IP MAC_EXP_FLAG_RECURSE
48
48
/*      Expand macros in lookup results. This should never be done with
49
49
/*      data whose origin is untrusted.
 
50
/* .IP MAC_EXP_FLAG_APPEND
 
51
/*      Append text to the result buffer.
50
52
/* .PP
51
53
/*      The constant MAC_EXP_FLAG_NONE specifies a manifest null value.
52
54
/* .RE
231
233
    mc.context = context;
232
234
    mc.status = 0;
233
235
    mc.level = 0;
234
 
    VSTRING_RESET(result);
 
236
    if ((flags & MAC_EXP_FLAG_APPEND) == 0)
 
237
        VSTRING_RESET(result);
235
238
    status = mac_parse(pattern, mac_expand_callback, (char *) &mc);
236
239
    VSTRING_TERMINATE(result);
237
240