Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
subjectxbj committed Mar 26, 2018
1 parent b288698 commit 6518d07
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lwa.c
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ static char* getRedirectUrl(json_object *config){
json_object_object_add(attr, "deviceSerialNumber", json_object_new_string(get_config_param_value(config, "deviceSerialNumber")));
#endif
scopeData = json_object_to_json_string(root);
json_object_put(root);

//printf("%s", scopeData);

memset(lwaUrl, 0, sizeof(lwaUrl));
Expand All @@ -88,6 +88,7 @@ static char* getRedirectUrl(json_object *config){
sprintf(param, "scope_data=%s", urlencode(scopeData));
strcat(lwaUrl, param);
strcat(lwaUrl, "&");
json_object_put(root);

memset(param, 0, sizeof(param));
sprintf(param, "response_type=%s", responseType);
Expand Down

0 comments on commit 6518d07

Please sign in to comment.