(/home/sate/Testcases/c/cve/dovecot-1.2.0/src/lib-storage/mail-user.c) |
| |
| 162 | | | const char *mail_user_get_temp_prefix(struct mail_user *user) |
| 163 | | | { |
| 164 | | | struct mail_namespace *ns; |
| 165 | | | |
| 166 | | | if (user->_home != NULL) { |
| 167 | | | return t_strconcat(user->_home, "/.temp.", my_hostname, ".", |
| 168 | | | my_pid, ".", NULL); |
| 169 | | | } |
| 170 | | | |
| 171 | | | ns = mail_namespace_find_inbox(user->namespaces); |
| 172 | | | if (ns == NULL) |
Redundant Condition
ns == (void *)0 always evaluates to false. This may be because: - There is a constant assignment to one or more of the variables involved.
- An earlier conditional statement has already ensured that ns == (void *)0 cannot be true.
- A crashing bug occurs on every path where ns == (void *)0 could have evaluated to true. Look for a preceding Null Pointer Dereference or Division By Zero warning.
|
|
| 173 | | | ns = user->namespaces; |
| 174 | | | return mail_storage_get_temp_prefix(ns->storage); |
| 175 | | | } |
| |