projects
/
tools
/
librpm-tizen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e996d91
)
Return explicit NULL on sepoltransNew() failure
author
Panu Matilainen
<pmatilai@redhat.com>
Mon, 30 May 2011 09:04:18 +0000
(12:04 +0300)
committer
Panu Matilainen
<pmatilai@redhat.com>
Mon, 30 May 2011 09:05:19 +0000
(12:05 +0300)
plugins/sepolicy.c
patch
|
blob
|
history
diff --git
a/plugins/sepolicy.c
b/plugins/sepolicy.c
index
7f8ba5d
..
b4fa910
100644
(file)
--- a/
plugins/sepolicy.c
+++ b/
plugins/sepolicy.c
@@
-328,9
+328,9
@@
static sepoltrans *sepoltransNew(void)
}
semanage_handle_destroy(pt->sh);
}
-
pt = _
free(pt);
+ free(pt);
- return
pt
;
+ return
NULL
;
}
static sepoltrans *sepoltransFree(sepoltrans * pt)