~ubuntu-branches/ubuntu/gutsy/wireshark/gutsy-security

« back to all changes in this revision

Viewing changes to epan/ftypes/ftype-string.c

  • Committer: Bazaar Package Importer
  • Author(s): Frederic Peters
  • Date: 2007-04-01 08:58:40 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20070401085840-or3qhrpv8alt1bwg
Tags: 0.99.5-1
* New upstream release.
* debian/patches/09_idl2wrs.dpatch: updated to patch idl2wrs.sh.in.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
 
 * $Id: ftype-string.c 18197 2006-05-21 05:12:17Z sahlberg $
 
2
 * $Id: ftype-string.c 20246 2006-12-30 00:57:46Z sahlberg $
3
3
 *
4
4
 * Wireshark - Network traffic analyzer
5
5
 * By Gerald Combs <gerald@wireshark.org>
55
55
string_fvalue_set(fvalue_t *fv, gpointer value, gboolean already_copied)
56
56
{
57
57
    DISSECTOR_ASSERT(value != NULL);
 
58
    DISSECTOR_ASSERT(!already_copied);
58
59
 
59
60
        /* Free up the old value, if we have one */
60
61
        string_fvalue_free(fv);
61
62
 
62
 
        if (already_copied) {
63
 
                fv->value.string = value;
64
 
        }
65
 
        else {
66
 
                fv->value.string = g_strdup(value);
67
 
        }
 
63
        fv->value.string = g_strdup(value);
68
64
}
69
65
 
70
66
static int