Permalink
Browse files

Added catch to ensure reliable operations

  • Loading branch information...
1 parent 8ea6344 commit 9d477bdfcd0ebdd1535e9f96b1f426e94133ef04 @akerl akerl committed Dec 6, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 lib/fko_encryption.c
View
@@ -660,6 +660,8 @@ fko_set_gpg_home_dir(fko_ctx_t ctx, const char *gpg_home_dir)
if( !wordexp(gpg_home_dir, &expanded_form, WRDE_SHOWERR) ){
gpg_home_dir = strdup(expanded_form.we_wordv[0]);
wordfree(&expanded_form);
+ } else {
+ gpg_home_dir = strdup(gpg_home_dir);
}
/* If we are unable to stat the given dir, then return with error.

0 comments on commit 9d477bd

Please sign in to comment.