summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
a3af739)
Changes:
- Adds checking that the variable is nullptr.
Change-Id: I632547066e972cf99d7f2c99b2464b39029e7b24
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
int LaunchpadParser::UnInstall(xmlDocPtr doc, std::string pkgid) {
xmlNode* root = xmlDocGetRootElement(doc);
int LaunchpadParser::UnInstall(xmlDocPtr doc, std::string pkgid) {
xmlNode* root = xmlDocGetRootElement(doc);
+ if (root == nullptr)
+ return -1;
+
for (xmlNode* node = root->children; node; node = node->next) {
if (!node->name)
continue;
for (xmlNode* node = root->children; node; node = node->next) {
if (!node->name)
continue;