diff options
author | Ondřej Surý <ondrej@sury.org> | 2013-03-01 13:23:59 +0100 |
---|---|---|
committer | Ondřej Surý <ondrej@sury.org> | 2013-03-01 13:23:59 +0100 |
commit | 621622287b6da91b755565b9133c4e53f8a0251d (patch) | |
tree | 5e5e24353518b7d62ad65d552d3cd6f1899f7391 /src/libknot/zone/zone.h | |
parent | 2729227efaac366293e70770b6e82e7e775a2605 (diff) | |
download | knot-621622287b6da91b755565b9133c4e53f8a0251d.tar.gz |
Imported Upstream version 1.2.0~rc3upstream/1.2.0_rc3
Diffstat (limited to 'src/libknot/zone/zone.h')
-rw-r--r-- | src/libknot/zone/zone.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/libknot/zone/zone.h b/src/libknot/zone/zone.h index 31ff2ac..26a5e2a 100644 --- a/src/libknot/zone/zone.h +++ b/src/libknot/zone/zone.h @@ -193,7 +193,11 @@ void knot_zone_set_dtor(knot_zone_t *zone, int (*dtor)(struct knot_zone *)); * \param zone Zone. */ static inline unsigned knot_zone_flags(knot_zone_t *zone) { - return zone->flags; + if (zone) { + return zone->flags; + } else { + return 0; + } } /*! |