This is an automated email from the git hooks/post-receive script.

sthibault pushed a commit to branch upstream
in repository hurd.

commit 460b6f2daff3c413de4312424d38cd50c481016f
Author: Justus Winter <[email protected]>
Date:   Mon Nov 25 16:58:59 2013 +0100

    libdiskfs: improve error reporting in diskfs_start_disk_pager
    
    * libdiskfs/disk-pager.c (diskfs_start_disk_pager): Improve error reporting.
---
 libdiskfs/disk-pager.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/libdiskfs/disk-pager.c b/libdiskfs/disk-pager.c
index 8fe8f80..9a0d9d8 100644
--- a/libdiskfs/disk-pager.c
+++ b/libdiskfs/disk-pager.c
@@ -71,7 +71,8 @@ diskfs_start_disk_pager (struct user_pager_info *upi,
   diskfs_disk_pager = pager_create (upi, pager_bucket,
                                    may_cache, MEMORY_OBJECT_COPY_NONE,
                                    notify_on_evict);
-  assert (diskfs_disk_pager);
+  if (diskfs_disk_pager == NULL)
+    error (2, errno, "creating diskfs_disk_pager failed");
 
   /* Get a port to the disk pager.  */
   disk_pager_port = pager_get_port (diskfs_disk_pager);

-- 
Alioth's /usr/local/bin/git-commit-notice on 
/srv/git.debian.org/git/pkg-hurd/hurd.git

Reply via email to