pidgin/pidgin

Fix segmentation fault on IRC server reply
release-2.x.y
2022-05-30, Belgin Știrbu
31b24663dd5f
Fix segmentation fault on IRC server reply

When Pidgin received `:nick!user@host JOIN #channel` from an IRC
server, it worked fine, but when it received
`:nick JOIN #channel`, it crashed with a segmentation fault.

Testing Done:
Tested with a custom IRC server that only sends the nickname. Also tested on Libera Chat.

Bugs closed: PIDGIN-17375

Reviewed at https://reviews.imfreedom.org/r/1484/
prefix=@prefix@
exec_prefix=@exec_prefix@
libdir=@libdir@
includedir=@includedir@
datarootdir=@datarootdir@
datadir=@datadir@
sysconfdir=@sysconfdir@
Name: Pidgin (Gaim compatibility)
Description: Pidgin is a GTK2-based instant messenger application.
Version: @VERSION@
Requires: glib-2.0
Cflags: -I${pc_top_builddir}/${pcfiledir}/libpurple -I${pc_top_builddir}/${pcfiledir}/pidgin
Libs: ${pc_top_builddir}/${pcfiledir}/libpurple/libpurple.la