Skip to content

Commit

Permalink
benc2json not working in reverse
Browse files Browse the repository at this point in the history
  • Loading branch information
Caleb James DeLisle committed Feb 1, 2013
1 parent 5252b3e commit 73e12e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion benc2json.c
Expand Up @@ -39,7 +39,7 @@ int main(int argc, char** argv)
const struct BencSerializer* parser = StandardBencSerializer_get();
const struct BencSerializer* serializer = JsonBencSerializer_get();

if (argc > 1 && !strcmp(argv[0], "-r")) {
if (argc > 1 && !strcmp(argv[1], "-r")) {
const struct BencSerializer* p = parser;
parser = serializer;
serializer = p;
Expand Down

0 comments on commit 73e12e1

Please sign in to comment.