aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Richard Brown <rbrown@exherbo.org> 2006-12-11 21:34:05 +0000
committerAvatar Richard Brown <rbrown@exherbo.org> 2006-12-11 21:34:05 +0000
commit9e30d4579b71c319781493c455bfb83bd69a70fe (patch)
tree8d9f66e6a5cd067f11da7830c16e31da6597ce13
parentfc1d5e529c62cde98477c61811aec87275466749 (diff)
downloadpaludis-9e30d4579b71c319781493c455bfb83bd69a70fe.tar.gz
paludis-9e30d4579b71c319781493c455bfb83bd69a70fe.tar.xz
Allow dep_atom_to_value to handle 0 in ruby binding.
-rw-r--r--ruby/dep_atom.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/ruby/dep_atom.cc b/ruby/dep_atom.cc
index f7b8660..9f2937a 100644
--- a/ruby/dep_atom.cc
+++ b/ruby/dep_atom.cc
@@ -329,6 +329,9 @@ paludis::ruby::dep_atom_to_value(DepAtom::ConstPointer m)
}
};
+ if (0 == m)
+ return Qnil;
+
DepAtom::ConstPointer * m_ptr(0);
try
{