diff options
Diffstat (limited to 'libstore/set.c')
-rw-r--r-- | libstore/set.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |