summaryrefslogtreecommitdiffstats
path: root/shlibs/mount/src/context.c
diff options
context:
space:
mode:
authorKarel Zak2011-06-08 11:22:25 +0200
committerKarel Zak2011-06-08 11:22:25 +0200
commita0c014dc4bc1891545b3fb0952f3b7ca32366b44 (patch)
treead175e104a79b31b11b4ce1842b02305517dafe9 /shlibs/mount/src/context.c
parentcolrm: manual update (diff)
downloadkernel-qcow2-util-linux-a0c014dc4bc1891545b3fb0952f3b7ca32366b44.tar.gz
kernel-qcow2-util-linux-a0c014dc4bc1891545b3fb0952f3b7ca32366b44.tar.xz
kernel-qcow2-util-linux-a0c014dc4bc1891545b3fb0952f3b7ca32366b44.zip
libmount: fix uninitialized variable in sample
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'shlibs/mount/src/context.c')
-rw-r--r--shlibs/mount/src/context.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/shlibs/mount/src/context.c b/shlibs/mount/src/context.c
index 1968a4b34..6b0edc55b 100644
--- a/shlibs/mount/src/context.c
+++ b/shlibs/mount/src/context.c
@@ -712,7 +712,8 @@ int mnt_context_get_fstab(struct libmnt_context *cxt, struct libmnt_table **tb)
* @cxt: mount context
* @tb: returns mtab
*
- * See also mnt_table_parse_mtab() for more details about mtab/mountinfo.
+ * See also mnt_table_parse_mtab() for more details about mtab/mountinfo. The
+ * result will deallocated by mnt_free_context(@cxt).
*
* Returns: 0 on success, negative number in case of error.
*/