This commit addresses SVACE-reported issue.
Change-Id: I03871ae2cda6c5aede9582dc4be62aeb31696b4b
fs = mnt_table_find_target(t, p, MNT_ITER_BACKWARD);
if (!fs)
continue;
- const char *origtemp = temp;
- temp = mnt_fs_get_srcpath(fs);
- _I("%s is found under mountpoint %s on device %s (internal storage candidate)\n", origtemp, p, temp);
+
+ const char *loopmnt_srcpath = mnt_fs_get_srcpath(fs);
+ if (!loopmnt_srcpath)
+ continue;
+
+ _I("%s is found under mountpoint %s on device %s (internal storage candidate)\n", temp, p, loopmnt_srcpath);
+ temp = loopmnt_srcpath;
break;
}
free(backingfile_path);