Imported Upstream version 0.19.7
[platform/upstream/gettext.git] / gettext-tools / gnulib-lib / mbsstr.c
index 24cff25..6d5239e 100644 (file)
@@ -1,5 +1,5 @@
-/* Searching in a string.
-   Copyright (C) 2005-2013 Free Software Foundation, Inc.
+/* Searching in a string.  -*- coding: utf-8 -*-
+   Copyright (C) 2005-2015 Free Software Foundation, Inc.
    Written by Bruno Haible <bruno@clisp.org>, 2005.
 
    This program is free software: you can redistribute it and/or modify
@@ -50,7 +50,8 @@ knuth_morris_pratt_multibyte (const char *haystack, const char *needle,
   if (memory == NULL)
     return false;
   needle_mbchars = memory;
-  table = table_memory = needle_mbchars + m;
+  table_memory = needle_mbchars + m;
+  table = table_memory;
 
   /* Fill needle_mbchars.  */
   {