Skip to content

Commit

Permalink
fixed segfault when trying to display available devices
Browse files Browse the repository at this point in the history
  • Loading branch information
tihmstar committed Jan 2, 2017
1 parent ae684cc commit 1f1d4f3
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
</BuildableProductRunnable>
<CommandLineArguments>
<CommandLineArgument
argument = "-d iPod7,1 -i 10.2 -s"
argument = "-d iPhone7,2--list-ios-version"
isEnabled = "YES">
</CommandLineArgument>
</CommandLineArguments>
Expand Down
2 changes: 1 addition & 1 deletion tsschecker/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ int main(int argc, const char * argv[]) {
jsmntok_t *firmwareTokens = NULL;

if (!devVals.deviceModel)
if (!(devVals.deviceModel = (char*)getModelFromBoardconfig(devVals.deviceBoard)))
if (devVals.deviceBoard && !(devVals.deviceModel = (char*)getModelFromBoardconfig(devVals.deviceBoard)))
reterror(-25, "[TSSC] If you using --boardconfig please also specify devicemodel with -d\n");


Expand Down

0 comments on commit 1f1d4f3

Please sign in to comment.