new_shargs used without initialization, could cause undefined behaviors as its contents are passed to other variables Signed-off-by: Gary <gang1.wang@intel.com>
@@ -330,7 +330,7 @@ err:
}
if (ret == -EINVAL) { /* it's a shebang */
- LISTP_TYPE(sharg) new_shargs;
+ LISTP_TYPE(sharg) new_shargs = LISTP_INIT;
struct sharg * next = NULL;
bool ended = false, started = false;
char buf[80];