title: warning C4047: '=' : 'char' differs in levels of indirection from 'char *'
body: <p>What is the problem with the code shown below.</p>
  
  <pre><code>char filter[2] = {'\0'};
  *filter = (char *)calloc((unsigned int)buf.st_size + 1, sizeof(unsigned char));
  </code></pre>
  
  <p>As per my understanding, there is no problem changing the array location right? Why I ask this is because of a warning,</p>
  
  <pre><code>Warning 1   warning C4047: '=' : 'char' differs in levels of indirection from 'char *'
  </code></pre>
  
  <p>Any idea?</p>
  
  <p>Got it, changed the code to. Thanks @ouah</p>
  
  <pre><code>char *filter = {'\0'};
  filter = (char *)calloc((unsigned int)buf.st_size + 1, sizeof(unsigned char));
  </code></pre>