Skip to content

Commit

Permalink
Fix issues
Browse files Browse the repository at this point in the history
  • Loading branch information
pboyd04 committed Sep 27, 2018
1 parent 8206687 commit 72cbc4f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/payload.c
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ char* getPayloadUri(redfishPayload* payload)
json = json_object_get(payload->json, "@odata.id");
if(json == NULL)
{
json = json_object_get(target->json, "target");
json = json_object_get(payload->json, "target");
if(json == NULL)
{
return NULL;
Expand Down Expand Up @@ -477,7 +477,6 @@ redfishPayload* postPayload(redfishPayload* target, redfishPayload* payload)

bool deletePayload(redfishPayload* payload)
{
json_t* json;
char* uri;
bool ret;

Expand All @@ -488,7 +487,7 @@ bool deletePayload(redfishPayload* payload)
uri = getPayloadUri(payload);
if(uri == NULL)
{
return NULL;
return false;
}
ret = deleteUriFromService(payload->service, uri);
free(uri);
Expand Down

0 comments on commit 72cbc4f

Please sign in to comment.