summaryrefslogtreecommitdiff
path: root/libstore
diff options
context:
space:
mode:
Diffstat (limited to 'libstore')
-rw-r--r--libstore/ChangeLog4
-rw-r--r--libstore/set.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/libstore/ChangeLog b/libstore/ChangeLog
index 9a6ee4d8..af253b67 100644
--- a/libstore/ChangeLog
+++ b/libstore/ChangeLog
@@ -1,3 +1,7 @@
+2001-04-26 Marcus Brinkmann <marcus@ulysses.dhis.net>
+
+ * set.c: Use explicit comparison to MACH_PORT_NULL.
+
2001-03-07 Roland McGrath <roland@frob.com>
* store.h (store_write, store_write_meth_t): Make buffer arg const*.
diff --git a/libstore/set.c b/libstore/set.c
index ab9747ff..26a26075 100644
--- a/libstore/set.c
+++ b/libstore/set.c
@@ -69,7 +69,7 @@ store_set_name (struct store *store, const char *name)
source from which it was created. */
void store_close_source (struct store *store)
{
- if (store->source)
+ if (store->source != MACH_PORT_NULL)
{
mach_port_deallocate (mach_task_self (), store->source);
store->source = MACH_PORT_NULL;