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:
parent
a307ed66cc
commit
dbf8024eeb
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue