Diff

Differences From Artifact [de5cf6edd0]:

To Artifact [911e072212]:


  4699   4699   	if (getenv("CACKEY_PIN_COMMAND") != NULL) {
  4700   4700   		cackey_pin_command = strdup(getenv("CACKEY_PIN_COMMAND"));
  4701   4701   	}
  4702   4702   
  4703   4703   	if (getenv("CACKEY_PIN_COMMAND_XONLY") != NULL && getenv("DISPLAY") != NULL) {
  4704   4704   		cackey_pin_command = strdup(getenv("CACKEY_PIN_COMMAND_XONLY"));
  4705   4705   	}
         4706  +
         4707  +	if (strcmp(cackey_pin_command, "") == 0) {
         4708  +		free(cackey_pin_command);
         4709  +		cackey_pin_command = NULL;
         4710  +	}
  4706   4711   
  4707   4712   #ifdef CACKEY_READERS_INCLUDE_ONLY_DEFAULT
  4708   4713   	cackey_readers_include_only = strdup(CACKEY_MACRO_DEFAULT_XSTR(CACKEY_READERS_INCLUDE_ONLY_DEFAULT));
  4709   4714   #endif
  4710   4715   
  4711   4716   #ifdef CACKEY_READERS_EXCLUDE_DEFAULT
  4712   4717   	cackey_readers_exclude = strdup(CACKEY_MACRO_DEFAULT_XSTR(CACKEY_READERS_EXCLUDE_DEFAULT));