Skip to content

Commit

Permalink
[Clang]: Uninitialized argument value (#3419)
Browse files Browse the repository at this point in the history
Issue: 2nd function call argument is an uninitialized value

Fix:Warning arises due to __ob_inode and __first_fd not
initialized so initializes it with NULL

Updates: #1060
Signed-off-by: Preet <pbhatia@redhat.com>
  • Loading branch information
pbhatia22 authored Apr 20, 2022
1 parent 5b8ba6b commit ef036ac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions xlators/performance/open-behind/src/open-behind.c
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,8 @@ typedef struct ob_inode {

#define OB_POST_FD(_fop, _xl, _frame, _fd, _trigger, _args...) \
do { \
ob_inode_t *__ob_inode; \
fd_t *__first_fd; \
ob_inode_t *__ob_inode = NULL; \
fd_t *__first_fd = NULL; \
ob_state_t __ob_state = ob_open_and_resume_fd( \
_xl, _fd, 0, true, _trigger, &__ob_inode, &__first_fd); \
switch (__ob_state) { \
Expand Down

0 comments on commit ef036ac

Please sign in to comment.