patch-src_rox_strings_c 640 B

123456789101112131415161718192021222324
  1. $OpenBSD: patch-src_rox_strings_c,v 1.3 2017/05/04 19:22:03 espie Exp $
  2. Index: src/rox_strings.c
  3. --- src/rox_strings.c.orig
  4. +++ src/rox_strings.c
  5. @@ -2191,7 +2191,7 @@ gchar* copied_from_browser_to_ftext (const gchar *s, c
  6. gchar* get_charset_from_meta (const gchar *text)
  7. {
  8. if (! text)
  9. - return;
  10. + return NULL;
  11. gchar *s1 = strstr (text, "<meta");
  12. if (! s1)
  13. @@ -2479,7 +2479,7 @@ gchar* str_before_sep (const gchar *str, const gchar *
  14. gchar* str_after_sep (const gchar *str, const gchar *sep)
  15. {
  16. if ((str == NULL) || (sep == NULL))
  17. - return;
  18. + return NULL;
  19. gchar *t = strstr (str, sep);
  20. if (t)