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>
This commit is contained in:
Guy Harris 2014-10-08 14:04:45 -07:00
parent a307ed66cc
commit dbf8024eeb
1 changed files with 0 additions and 2 deletions

View File

@ -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;
}