Removed NULL checks when not required
This commit is contained in:
@@ -84,11 +84,9 @@ p_gpg_close(void)
|
|||||||
fpskeyfile = NULL;
|
fpskeyfile = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (fpsloc) {
|
|
||||||
free(fpsloc);
|
free(fpsloc);
|
||||||
fpsloc = NULL;
|
fpsloc = NULL;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
void
|
void
|
||||||
p_gpg_on_connect(const char * const barejid)
|
p_gpg_on_connect(const char * const barejid)
|
||||||
@@ -178,11 +176,9 @@ p_gpg_on_disconnect(void)
|
|||||||
fpskeyfile = NULL;
|
fpskeyfile = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (fpsloc) {
|
|
||||||
free(fpsloc);
|
free(fpsloc);
|
||||||
fpsloc = NULL;
|
fpsloc = NULL;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
gboolean
|
gboolean
|
||||||
p_gpg_addkey(const char * const jid, const char * const keyid)
|
p_gpg_addkey(const char * const jid, const char * const keyid)
|
||||||
|
|||||||
Reference in New Issue
Block a user