Quantcast

[PATCH] fixing uninitialized pointer

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[PATCH] fixing uninitialized pointer

Prabhakar_Pujeri
Signed-off-by: prabhakar pujeri <[hidden email]>
---
 src/lib/u/uoption.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/lib/u/uoption.c b/src/lib/u/uoption.c
index c62b392..05bfa4c 100644
--- a/src/lib/u/uoption.c
+++ b/src/lib/u/uoption.c
@@ -653,7 +653,7 @@ char u_option_context_parse(u_option_context_t *ctx,
  int i, j;
  char retval = 0;
 
- u_option_entry_t *found;
+ u_option_entry_t *found=NULL;
  struct tmp_buf *tmp_data;
 
  if (!ctx)
--
2.4.0


------------------------------------------------------------------------------
_______________________________________________
Openwsman-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/openwsman-devel
Loading...