Missed uninitialized variable. draft
authorMichael Froman <mfroman@mozilla.com>
Fri, 18 Mar 2016 01:40:10 -0500
changeset 341977 fea7304848087d116fc4e2e2ef63b433411738b0
parent 341976 aef2690309a8044a62b528b8b8c32448b056a373
child 516507 ecc9b0466ae2736c33df9da06b29e69b396fe159
push id13336
push usermfroman@nostrum.com
push dateFri, 18 Mar 2016 06:41:24 +0000
milestone47.0a1
Missed uninitialized variable. MozReview-Commit-ID: 94z9jHj3JrJ
media/mtransport/third_party/nICEr/src/ice/ice_ctx.c
--- a/media/mtransport/third_party/nICEr/src/ice/ice_ctx.c
+++ b/media/mtransport/third_party/nICEr/src/ice/ice_ctx.c
@@ -315,17 +315,18 @@ int nr_ice_fetch_turn_servers(int ct, nr
     return(_status);
   }
 #endif /* USE_TURN */
 
 #define MAXADDRS 100 /* Ridiculously high */
 int nr_ice_ctx_create(char *label, UINT4 flags, nr_ice_ctx **ctxp)
   {
     int r,_status;
-    char *ufrag, *pwd;
+    char *ufrag = 0;
+    char *pwd = 0;
 
     if (r=nr_ice_get_new_ice_ufrag(&ufrag))
       ABORT(r);
     if (r=nr_ice_get_new_ice_pwd(&pwd))
       ABORT(r);
 
     if (r=nr_ice_ctx_create_with_credentials(label, flags, ufrag, pwd, ctxp))
       ABORT(r);