Skip to content
Commit 18c60c0a authored by Benny Halevy's avatar Benny Halevy Committed by David Teigland
Browse files

dlm: fix uninitialized variable for search_rsb_list callers



gcc 4.3.0 correctly emits the following warning.
search_rsb_list does not *r_ret if no dlm_rsb is found
and _search_rsb may pass the uninitialized value upstream
on the error path when both calls to search_rsb_list
return non-zero error.

The fix sets *r_ret to NULL on search_rsb_list's not-found path.

Signed-off-by: default avatarBenny Halevy <bhalevy@panasas.com>
Signed-off-by: default avatarDavid Teigland <teigland@redhat.com>
parent 311f6fc7
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment