diff -r f467353f5657 parse.c
|
a
|
b
|
|
| 341 | 341 | /* Some pre-RFC1521 gateways still use the "name=filename" convention, |
| 342 | 342 | * but if a filename has already been set in the content-disposition, |
| 343 | 343 | * let that take precedence, and don't set it here */ |
| 344 | | if ((pc = mutt_get_parameter( "name", ct->parameter)) != 0 && !ct->filename) |
| | 344 | if ((pc = mutt_get_parameter( "name", ct->parameter)) != NULL && !ct->filename) |
| 345 | 345 | ct->filename = safe_strdup(pc); |
| 346 | 346 | |
| 347 | 347 | #ifdef SUN_ATTACHMENT |
| 348 | 348 | /* this is deep and utter perversion */ |
| 349 | | if ((pc = mutt_get_parameter ("conversions", ct->parameter)) != 0) |
| | 349 | if ((pc = mutt_get_parameter ("conversions", ct->parameter)) != NULL) |
| 350 | 350 | ct->encoding = mutt_check_encoding (pc); |
| 351 | 351 | #endif |
| 352 | 352 | |
| … |
… |
|
| 425 | 425 | { |
| 426 | 426 | s++; |
| 427 | 427 | SKIPWS (s); |
| 428 | | if ((s = mutt_get_parameter ("filename", (parms = parse_parameters (s)))) != 0) |
| | 428 | if ((s = mutt_get_parameter ("filename", (parms = parse_parameters (s)))) != NULL) |
| 429 | 429 | mutt_str_replace (&ct->filename, s); |
| 430 | | if ((s = mutt_get_parameter ("name", parms)) != 0) |
| | 430 | if ((s = mutt_get_parameter ("name", parms)) != NULL) |
| 431 | 431 | ct->form_name = safe_strdup (s); |
| 432 | 432 | mutt_free_parameter (&parms); |
| 433 | 433 | } |
diff -r f467353f5657 snprintf.c
|
a
|
b
|
|
| 387 | 387 | int padlen, strln; /* amount to pad */ |
| 388 | 388 | int cnt = 0; |
| 389 | 389 | |
| 390 | | if (value == 0) |
| | 390 | if (value == NULL) |
| 391 | 391 | { |
| 392 | 392 | value = "<NULL>"; |
| 393 | 393 | } |