title: Program won't run successfully? Segmentation fault 11, expression treated as a null pointer; C
body: <p>I get a segmentation fault when I run my program, and these errors when I compile it. What must i do to get my program working. </p>
  
  <pre><code>./documents/TEST/TEST/main.c:117:72: warning: expression which evaluates to zero
            treated as a null pointer constant of type 'const char *'
            [-Wnon-literal-null-conversion]
                  strcpy(dragon_index-&gt;team[dragon_index-&gt;num_dragons].name, '\0');
                                                                             ^~~~
      /usr/include/secure/_string.h:83:33: note: expanded from macro 'strcpy'
        __builtin___strcpy_chk (dest, src, __darwin_obsz (dest))
                                      ^
      ./documents/TEST/TEST/main.c:121:73: warning: expression which evaluates to zero
            treated as a null pointer constant of type 'const char *'
            [-Wnon-literal-null-conversion]
                  strcpy(dragon_index-&gt;team[dragon_index-&gt;num_dragons].color, '\0');
                                                                              ^~~~
      /usr/include/secure/_string.h:83:33: note: expanded from macro 'strcpy'
        __builtin___strcpy_chk (dest, src, __darwin_obsz (dest))
  </code></pre>