summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorToomas Soome <tsoome@me.com>2019-01-22 14:28:16 +0200
committerToomas Soome <tsoome@me.com>2019-06-25 23:31:54 +0300
commit229945d3d7718e50413d46140ea34f0e9c195c16 (patch)
tree732f86a9be15fb4777c6944a4a75cce8e6a2f892
parent47f78bf40e94882d167f6132e5dc25ffed0be6e5 (diff)
downloadillumos-joyent-229945d3d7718e50413d46140ea34f0e9c195c16.tar.gz
11160 pylibbe: NULL pointer errors
Reviewed by: Peter Tribble <peter.tribble@gmail.com> Approved by: Dan McDonald <danmcd@joyent.com>
-rw-r--r--usr/src/lib/pylibbe/common/libbe_py.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr/src/lib/pylibbe/common/libbe_py.c b/usr/src/lib/pylibbe/common/libbe_py.c
index 3b4a3a3c42..37e801a571 100644
--- a/usr/src/lib/pylibbe/common/libbe_py.c
+++ b/usr/src/lib/pylibbe/common/libbe_py.c
@@ -885,7 +885,7 @@ convertBEInfoToDictionary(be_node_list_t *be, PyObject **listDict)
}
}
- if (be->be_node_creation != NULL) {
+ if (be->be_node_creation != 0) {
if (PyDict_SetItemString(*listDict, BE_ATTR_DATE,
PyLong_FromLong(be->be_node_creation)) != 0) {
return (B_FALSE);
@@ -958,7 +958,7 @@ convertDatasetInfoToDictionary(be_dataset_list_t *ds, PyObject **listDict)
}
}
- if (ds->be_ds_creation != NULL) {
+ if (ds->be_ds_creation != 0) {
if (PyDict_SetItemString(*listDict, BE_ATTR_DATE,
PyLong_FromLong(ds->be_ds_creation)) != 0) {
return (B_FALSE);
@@ -978,7 +978,7 @@ convertSnapshotInfoToDictionary(be_snapshot_list_t *ss, PyObject **listDict)
}
}
- if (ss->be_snapshot_creation != NULL) {
+ if (ss->be_snapshot_creation != 0) {
if (PyDict_SetItemString(*listDict, BE_ATTR_DATE,
PyLong_FromLong(ss->be_snapshot_creation)) != 0) {
return (B_FALSE);