X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=args.h;h=fbdd498b28bff67baeb0c6c3deaf8cfa5eaf7aa9;hb=4440c1bb156f64d3615f1c1e91ff5fbf2d7d9ca5;hp=1da24488ce6fcfb700418efcb2a0f05e408a7081;hpb=8e4a958eea326db65c7621b4c1840cdca97f6d07;p=xboard.git diff --git a/args.h b/args.h index 1da2448..fbdd498 100644 --- a/args.h +++ b/args.h @@ -1186,9 +1186,9 @@ ParseArgs(GetFunc get, void *cl) break; } if(replace) { // previous -replace option makes this string option conditional - char *p = (char*) replace; + int differs = strcmp(*(char**) ad->argLoc, (char*) replace); free(replace); replace = NULL; // but expires in the process - if(strcmp(*(char**) ad->argLoc, p)) break; // only use to replace the given string + if(differs) break; // only use to replace the given string } ASSIGN(*(char **) ad->argLoc, argValue); break;