]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rbd-fuse: fix for loop in open_rbd_image()
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Wed, 6 Feb 2013 11:17:02 +0000 (12:17 +0100)
committerSage Weil <sage@inktank.com>
Wed, 6 Feb 2013 16:42:43 +0000 (08:42 -0800)
commit3acc4d2cfee14ff15e178a4798eb46ef0024d0af
tree5cb55524d4708821a46d5a08baac40397b0b3e68
parentdb0dbe5db8bb87443f9450328d70cf9c94c3e167
rbd-fuse: fix for loop in open_rbd_image()

Remove uninitialized usage of 'int i' as i++ from 'for' loop.
The variale 'i' is never used in this loop and initialized
before the next use with 0.

Related warning from clang++:

rbd_fuse/rbd-fuse.c:141:36: warning: variable 'i' is uninitialized
when used here [-Wuninitialized]
        for (im = rbd_images; im != NULL; i++, im = im->next) {

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
src/rbd_fuse/rbd-fuse.c