aboutsummaryrefslogtreecommitdiffstats
path: root/wiretap/file_wrappers.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2014-10-08 14:04:45 -0700
committerGuy Harris <guy@alum.mit.edu>2014-10-08 21:05:05 +0000
commitdbf8024eeb27ac9fce573a617fc62ce8cd4a1607 (patch)
treef26e0bab39ba53551c0ae8fc4c3479f501829ba1 /wiretap/file_wrappers.c
parenta307ed66ccfd038a0e6e88bfa9dcdcae880fa515 (diff)
No need to set *err_info if there's no error.
Change-Id: I98ae9ec50e079d48b6247bb208528b7c5ad16027 Reviewed-on: https://code.wireshark.org/review/4564 Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'wiretap/file_wrappers.c')
-rw-r--r--wiretap/file_wrappers.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/wiretap/file_wrappers.c b/wiretap/file_wrappers.c
index 7c8463d0bb..667727346e 100644
--- a/wiretap/file_wrappers.c
+++ b/wiretap/file_wrappers.c
@@ -1364,8 +1364,6 @@ file_error(FILE_T fh, gchar **err_info)
if (fh->err!=0 && err_info) {
/* g_strdup() returns NULL for NULL argument */
*err_info = g_strdup(fh->err_info);
- } else if (err_info) {
- *err_info = NULL;
}
return fh->err;
}