diff options
author | Brian King <brking@linux.vnet.ibm.com> | 2016-01-12 16:07:44 -0600 |
---|---|---|
committer | Brian King <brking@linux.vnet.ibm.com> | 2016-01-12 16:07:44 -0600 |
commit | 7cb33d1cfe0268b13e19adb87dc6d81c360ae941 (patch) | |
tree | 47d6721226ea41cbc0cdc48042160754289250ab /iprconfig.c | |
parent | 8401269f8a815a4e6fcaef8ad915e00b2510e3a1 (diff) |
iprutils: Don't use uninitialized variable
Signed-off-by: Brian King <brking@linux.vnet.ibm.com>
Diffstat (limited to 'iprconfig.c')
-rw-r--r-- | iprconfig.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/iprconfig.c b/iprconfig.c index 4515f90..ab584e1 100644 --- a/iprconfig.c +++ b/iprconfig.c @@ -3732,12 +3732,12 @@ int configure_raid_parameters(i_container *i_con) 0, /* number of buffer to alter */ qdepth_str); /* string value to set */ - cache_prot_str = cache_pols[cache_prot]; - - if (ioa->vset_write_cache) + if (ioa->vset_write_cache) { + cache_prot_str = cache_pols[cache_prot]; set_field_buffer(input_fields[4], /* field to alter */ 0, /* number of buffer to alter */ cache_prot_str); /* string value to set */ + } refresh(); ch = getch(); |